You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The stack of open elements is said to have an element target node in a specific scope consisting of a list of element types list when the following algorithm terminates in a match state:
Initialize node to be the current node (the bottommost node of the stack).
If node is the target node, terminate in a match state.
Otherwise, if node is one of the element types in list, terminate in a failure state.
Otherwise, set node to the previous entry in the stack of open elements and return to step 2. (This will never fail, since the loop will always terminate in the previous step if the top of the stack — an html element — is reached.)
Why has the have an element target node in a specific scope such name (step number 3 shows that element mustn't match with list)?
This list (blacklist), why such a set of exceptions? For example, not all objects are from MathML and SVG. Accordingly, it is simply impossible to understand the meaning of the statements that uses this list.
The text was updated successfully, but these errors were encountered:
Why has the have an element target node in a specific scope such name (step number 3 shows that element mustn't match with list)?
Look at e.g. "A start tag whose tag name is "button"" for how this is used. <button><span><button> needs to close the first button, but <button><object><button> should instead nest (the ancestor button is not "in scope").
This list (blacklist), why such a set of exceptions? For example, not all objects are from MathML and SVG. Accordingly, it is simply impossible to understand the meaning of the statements that uses this list.
applet, caption, table, td, th, marquee, object are needed for compat with existing content (pre HTML parser spec era). html because it's the root element (also in the fragment case). template I believe was added here to get the right behavior when that element was added. The listed MathML and SVG elements are integration points where you can use HTML elements again, see https://html.spec.whatwg.org/#tree-construction
Generally, the spec doesn't explain all design decisions or rationale since it would at least 10x the size of the spec.
What is the issue with the HTML Standard?
Why has the have an element target node in a specific scope such name (step number 3 shows that element mustn't match with list)?
This list (blacklist), why such a set of exceptions? For example, not all objects are from MathML and SVG. Accordingly, it is simply impossible to understand the meaning of the statements that uses this list.
The text was updated successfully, but these errors were encountered: