ins nested within elements, elements nested within ins
Classified as: flow content, phrasing content, palpable content
Parents, ins
Children, ins
- transparent content model:
- ins content model = transparent → ins element accepts the elements its parent accepts
- (the elements, possible parents of the ins element, are listed above)
e.g.
1: p element, parent of the ins element
<p> <ins>... <⁄ins><⁄p>
2: p element accepts the a element as child
<p> <a> ... <a⁄><⁄p>
Conclusion: if the p element accepts the a element as child, then the ins element will accept it too
<p> <ins> <a> ... <a⁄> <⁄ins><⁄p>
Examples: ins parents, ins children
1 2 3 4 5 6 7 8 9 | <!doctype html> <> <> <>...</> </> <> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <!doctype html> <> <> <>...</> </> <> <> ... <>... </> </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <!doctype html> <> <> <>...</> <>... </> </> <> <> <><>...<> </> </> </> </> |
Syntax 1: Valid, ins elements absent; optional element;
Syntax 2: Valid, ins nested within p: allowed;
Syntax 3: Invalid, ins element nested within head, ul: not allowed; li elements nested within ins: not allowed