W3C home > Mailing lists > Public > public-html@w3.org > June 2008

[Bug 5792] New: li/dd/dt end tag in body when no corresponding elt on stack

From: <bugzilla@wiggum.w3.org>
Date: Tue, 24 Jun 2008 11:52:36 +0000
To: public-html@w3.org
Message-ID: <bug-5792-2495@http.www.w3.org/Bugs/Public/>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5792

           Summary: li/dd/dt end tag in body when no corresponding elt on
                    stack
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Spec bugs
        AssignedTo: dave.null@w3.org
        ReportedBy: hsivonen@iki.fi
         QAContact: public-html-bugzilla@w3.org
                CC: ian@hixie.ch, mike@w3.org, public-html@w3.org


> An end tag whose tag name is one of: "dd", "dt", "li"
>
>    If the stack of open elements does not have an element 
>    in scope with the same tag name as that of the token, 
>    then this is a parse error.
>
>   Otherwise, run these steps:
>
>      1. Generate implied end tags, except for elements 
>         with the same tag name as the token.
>      2. If the current node is not an element with the 
>         same tag name as that of the token, then this 
>         is a parse error.
>      3. Pop elements from the stack of open elements 
>         until an element with the same tag name as the 
>         token has been popped from the stack. 

What if there's no corresponding element on the stack? Shouldn't the first
paragraph end with "then this is a parse error; ignore the token."?


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Tuesday, 24 June 2008 11:53:11 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:55 UTC