Changeset 103005 in webkit


Ignore:
Timestamp:
Dec 15, 2011, 5:19:44 PM (14 years ago)
Author:
abarth@webkit.org
Message:

<ruby><div><p><rp> parses incorrectly
https://bugs.webkit.org/show_bug.cgi?id=74668

Reviewed by Darin Adler.

Source/WebCore:

This patch updates our implementation to match a change to the HTML5
specification regarding how <ruby> elements parse. Previously, <rp>
and similar tags used to pop the stack up to the <ruby> element. Now
the popping does not occur.

Tests: html5lib/runner.html

  • html/parser/HTMLTreeBuilder.cpp:

LayoutTests:

Update test results to show progression.

  • html5lib/runner-expected.txt:
  • platform/chromium/html5lib/runner-expected.txt:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r103000 r103005  
     12011-12-15  Adam Barth  <abarth@webkit.org>
     2
     3        <ruby><div><p><rp> parses incorrectly
     4        https://bugs.webkit.org/show_bug.cgi?id=74668
     5
     6        Reviewed by Darin Adler.
     7
     8        Update test results to show progression.
     9
     10        * html5lib/runner-expected.txt:
     11        * platform/chromium/html5lib/runner-expected.txt:
     12
    1132011-12-15  Adam Barth  <abarth@webkit.org>
    214
  • trunk/Source/WebCore/ChangeLog

    r103004 r103005  
     12011-12-15  Adam Barth  <abarth@webkit.org>
     2
     3        <ruby><div><p><rp> parses incorrectly
     4        https://bugs.webkit.org/show_bug.cgi?id=74668
     5
     6        Reviewed by Darin Adler.
     7
     8        This patch updates our implementation to match a change to the HTML5
     9        specification regarding how <ruby> elements parse.  Previously, <rp>
     10        and similar tags used to pop the stack up to the <ruby> element.  Now
     11        the popping does not occur.
     12
     13        Tests: html5lib/runner.html
     14
     15        * html/parser/HTMLTreeBuilder.cpp:
     16
    1172011-12-15  Daniel Sievers  <sievers@chromium.org>
    218
  • trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp

    r103000 r103005  
    10011001        if (m_tree.openElements()->inScope(rubyTag.localName())) {
    10021002            m_tree.generateImpliedEndTags();
    1003             if (!m_tree.currentNode()->hasTagName(rubyTag)) {
     1003            if (!m_tree.currentNode()->hasTagName(rubyTag))
    10041004                parseError(token);
    1005                 m_tree.openElements()->popUntil(rubyTag.localName());
    1006             }
    10071005        }
    10081006        m_tree.insertHTMLElement(token);
Note: See TracChangeset for help on using the changeset viewer.