Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify how PLAINTEXT elements may contain child nodes. #10540

Merged
merged 8 commits into from
Aug 14, 2024

Commits on Aug 2, 2024

  1. Reconstruct active formatting elements for PLAINTEXT element.

    Resolves whatwg#8009
    
    All major HTML parsers reconstruct active formatting elements when
    inserting a new PLAINTEXT element, leaving formatting elements as
    children of the PLAINTEXT element.
    
    However, the spec implies that this should not happen, because it
    doesn't instruct reconstruction. The implication in the spec is that
    a PLAINTEXT element may contain no children other than the plaintext
    content of the remainder of the HTML document.
    
    > Once a start tag with the tag name "plaintext" has been seen, that
    > will be the last token ever seen other than character tokens
    > (and the end-of-file token), because there is no way to switch out
    > of the PLAINTEXT state.
    
    This patch updates the spec to conform to the existing implementations
    by adding the mention to trigger reconstruction.
    dmsnell committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    212e87d View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2024

  1. Configuration menu
    Copy the full SHA
    306bf0d View commit details
    Browse the repository at this point in the history
  2. Remove needless comma.

    dmsnell committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    3965b08 View commit details
    Browse the repository at this point in the history
  3. Wording and formatting nits.

    zcorpan authored and dmsnell committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    0e76a30 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2024

  1. PR Feedback

    Co-authored-by: Simon Pieters <zcorpan@gmail.com>
    dmsnell and zcorpan committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    bb0822c View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2024

  1. Remove a comma

    zcorpan committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    eb657b0 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2024

  1. Clarify that child elements may come directly from the parser.

    Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
    dmsnell and annevk committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    84de4e9 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2024

  1. Lowercase "plaintext" element.

    Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
    dmsnell and annevk committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    609e91f View commit details
    Browse the repository at this point in the history