Skip to content

Commit

Permalink
Rewrote DOM integration, adding an expliting entry point algorithm to
Browse files Browse the repository at this point in the history
call from DOM.

whatwg/dom#789
Closes w3c#401.
  • Loading branch information
koto committed Jan 23, 2024
1 parent af81fe0 commit 88d6c40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1101,8 +1101,8 @@ Given an {{HTMLScriptElement}} (|script|), this algorithm performs the following

If the algorithm threw an error, rethrow the error.

## <dfn-abstract-op export>Validate attribute mutation</dfn> ## {#validate-attribute-mutation}
Given {{Attr}} |attribute|, {{Element}} |element| and {{TrustedType}} or a string |newValue|, this algorithm performs the following steps:
## Get Trusted Types-compliant attribute value ## {#validate-attribute-mutation}
To <dfn abstract-op export>get Trusted Types-compliant attribute value</dfn> on {{Attr}} |attribute| with {{Element}} |element| and {{TrustedType}} or a string |newValue|, perform the following steps:

1. If |element| has an <a spec="webidl" lt="attribute">IDL attribute</a> that [=reflects=] a content attribute with |attribute|'s [=Attr/local name=], let |idlAttribute| be that IDL attribute. Otherwise, return stringified |newValue|.
1. If {{StringContext}} IDL extended attribute does not appears on |idlAttribute|, return stringified |newValue|.
Expand Down

0 comments on commit 88d6c40

Please sign in to comment.