Changeset 55710 in webkit


Ignore:
Timestamp:
Mar 8, 2010 10:24:57 PM (14 years ago)
Author:
tkent@chromium.org
Message:

2010-03-08 Kent Tamura <tkent@chromium.org>

Reviewed by Adam Barth.

Implement HTML5 <hgroup> element.
https://bugs.webkit.org/show_bug.cgi?id=32943

The new test file tests:

  • <p> closing,
  • Residual style, and
  • FormatBlock.
  • fast/html/hgroup-element-expected.txt: Added.
  • fast/html/hgroup-element.html: Added.
  • fast/html/script-tests/hgroup-element.js: Added.

2010-03-08 Kent Tamura <tkent@chromium.org>

Reviewed by Adam Barth.

Implement HTML5 <hgroup> element.
https://bugs.webkit.org/show_bug.cgi?id=33369

<hgroup> should behave the same as <nav>, <section>, <article>, and <aside>.
<hgroup> has no specific parsing rules.

Test: fast/html/hgroup-element.html

  • css/html.css: Add hgroup as a block element.
  • editing/htmlediting.cpp: (WebCore::validBlockTag): Add hgroupTag.
  • html/HTMLElement.cpp: (WebCore::createTagPriorityMap): Returns 5 for hgroupTag. (WebCore::blockTagList): Add hgroupTag.
  • html/HTMLParser.cpp: (WebCore::HTMLParser::getNode): Add hgroupTag.
  • html/HTMLTagNames.in: Add hgroup.
Location:
trunk
Files:
3 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r55705 r55710  
     12010-03-08  Kent Tamura  <tkent@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        Implement HTML5 <hgroup> element.
     6        https://bugs.webkit.org/show_bug.cgi?id=32943
     7
     8        The new test file tests:
     9        - <p> closing,
     10        - Residual style, and
     11        - FormatBlock.
     12
     13        * fast/html/hgroup-element-expected.txt: Added.
     14        * fast/html/hgroup-element.html: Added.
     15        * fast/html/script-tests/hgroup-element.js: Added.
     16
    1172010-03-08  Tony Chang  <tony@chromium.org>
    218
  • trunk/WebCore/ChangeLog

    r55705 r55710  
     12010-03-08  Kent Tamura  <tkent@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        Implement HTML5 <hgroup> element.
     6        https://bugs.webkit.org/show_bug.cgi?id=33369
     7
     8        <hgroup> should behave the same as <nav>, <section>, <article>, and <aside>.
     9        <hgroup> has no specific parsing rules.
     10
     11        Test: fast/html/hgroup-element.html
     12
     13        * css/html.css: Add hgroup as a block element.
     14        * editing/htmlediting.cpp:
     15        (WebCore::validBlockTag): Add hgroupTag.
     16        * html/HTMLElement.cpp:
     17        (WebCore::createTagPriorityMap): Returns 5 for hgroupTag.
     18        (WebCore::blockTagList): Add hgroupTag.
     19        * html/HTMLParser.cpp:
     20        (WebCore::HTMLParser::getNode): Add hgroupTag.
     21        * html/HTMLTagNames.in: Add hgroup.
     22
    1232010-03-08  Tony Chang  <tony@chromium.org>
    224
  • trunk/WebCore/css/html.css

    r54273 r55710  
    7373}
    7474
    75 article, aside, footer, header, nav, section {
     75article, aside, footer, header, hgroup, nav, section {
    7676    display: block
    7777}
  • trunk/WebCore/editing/htmlediting.cpp

    r55271 r55710  
    490490        blockTags.add(h6Tag.localName());
    491491        blockTags.add(headerTag.localName());
     492        blockTags.add(hgroupTag.localName());
    492493        blockTags.add(navTag.localName());
    493494        blockTags.add(pTag.localName());
  • trunk/WebCore/html/HTMLElement.cpp

    r55167 r55710  
    108108    map->add(footerTag.localName().impl(), 5);
    109109    map->add(headerTag.localName().impl(), 5);
     110    map->add(hgroupTag.localName().impl(), 5);
    110111    map->add(nobrTag.localName().impl(), 5);
    111112    map->add(rubyTag.localName().impl(), 5);
     
    882883        tagList.add(h6Tag.localName().impl());
    883884        tagList.add(headerTag.localName().impl());
     885        tagList.add(hgroupTag.localName().impl());
    884886        tagList.add(hrTag.localName().impl());
    885887        tagList.add(isindexTag.localName().impl());
  • trunk/WebCore/html/HTMLParser.cpp

    r55203 r55710  
    939939        gFunctionMap.set(headTag.localName().impl(), &HTMLParser::headCreateErrorCheck);
    940940        gFunctionMap.set(headerTag.localName().impl(), &HTMLParser::pCloserCreateErrorCheck);
     941        gFunctionMap.set(hgroupTag.localName().impl(), &HTMLParser::pCloserCreateErrorCheck);
    941942        gFunctionMap.set(hrTag.localName().impl(), &HTMLParser::pCloserCreateErrorCheck);
    942943        gFunctionMap.set(iTag.localName().impl(), &HTMLParser::nestedStyleCreateErrorCheck);
  • trunk/WebCore/html/HTMLTagNames.in

    r54649 r55710  
    5656head createWithNew
    5757header interfaceName=HTMLElement
     58hgroup interfaceName=HTMLElement
    5859hr interfaceName=HTMLHRElement, createWithNew
    5960html createWithNew
Note: See TracChangeset for help on using the changeset viewer.