Skip to content

Commit daa3016

Browse files
authored
Provide a fallback for validation anchor
And allow the fallback to be explicitly passed as validation anchor. Test: web-platform-tests/wpt#53353. Fixes #10155.
1 parent 942e63d commit daa3016

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

source

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74900,11 +74900,13 @@ dictionary <dfn dictionary>ValidityStateFlags</dfn> {
7490074900
<span data-x="face-validation-message">validation message</span>. Otherwise, set
7490174901
<var>element</var>'s <span>custom validity error message</span> to the empty string.</p></li>
7490274902

74903+
<li><p>If <var>anchor</var> is not given, then set it to <var>element</var>.</p></li>
74904+
74905+
<li><p>Otherwise, if <var>anchor</var> is not a <span>shadow-including inclusive
74906+
descendant</span> of <var>element</var>, then throw a <span>"<code>NotFoundError</code>"</span>
74907+
<code>DOMException</code>.</p></li>
74908+
7490374909
<li><p>Set <var>element</var>'s <span data-x="face-validation-anchor">validation anchor</span> to
74904-
null if <var>anchor</var> is not given. Otherwise, if <var>anchor</var> is not a
74905-
<span>shadow-including descendant</span> of <var>element</var>, then throw a
74906-
<span>"<code>NotFoundError</code>"</span> <code>DOMException</code>. Otherwise, set
74907-
<var>element</var>'s <span data-x="face-validation-anchor">validation anchor</span> to
7490874910
<var>anchor</var>.</p></li>
7490974911
</ol>
7491074912

0 commit comments

Comments
 (0)