Changeset 140341 in webkit
- Timestamp:
- Jan 21, 2013 9:10:34 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 7 added
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r140340 r140341 1 2013-01-21 Michael[tm] Smith <mike@w3.org> 2 3 Implement the HTML <main> element. 4 https://bugs.webkit.org/show_bug.cgi?id=103172 5 6 Reviewed by Chris Fleizach. 7 8 <main> should behave the same as <nav>, <section>, <article>, and <aside>. 9 <main> has no specific parsing rules. 10 <main> should expose AXLandmarkMain correctly for each platform. 11 12 * editing/execCommand/query-format-block-expected.txt: 13 * editing/execCommand/remove-format-elements-expected.txt: 14 * editing/execCommand/remove-format-elements.html: 15 * editing/execCommand/script-tests/query-format-block.js: 16 * fast/block/child-not-removed-from-parent-lineboxes-crash.html: 17 * fast/dom/click-method-on-html-element-expected.txt: 18 * fast/dom/click-method-on-html-element.html: 19 * fast/dom/wrapper-classes-expected.txt: 20 * fast/dom/wrapper-classes.html: 21 * fast/forms/access-key-for-all-elements-expected.txt: 22 * fast/forms/access-key-for-all-elements.html: 23 * fast/html/main-element-expected.txt: Added. 24 * fast/html/main-element.html: Added. 25 * fast/html/script-tests/main-element.js: Added. 26 (getWeight): 27 * platform/chromium/accessibility/main-element-expected.txt: Added. 28 * platform/chromium/accessibility/main-element.html: Added. 29 * platform/chromium/fast/dom/wrapper-classes-expected.txt: 30 * platform/mac/accessibility/main-element-expected.txt: Added. 31 * platform/mac/accessibility/main-element.html: Added. 32 1 33 2013-01-21 Joanmarie Diggs <jdiggs@igalia.com> 2 34 -
trunk/LayoutTests/editing/execCommand/query-format-block-expected.txt
r74603 r140341 70 70 PASS queryCommand('formatBlock') returned "header" selecting first position of "<header>hello</header>" 71 71 PASS queryCommand('formatBlock') returned "hgroup" selecting first position of "<hgroup>hello</hgroup>" 72 PASS queryCommand('formatBlock') returned "main" selecting first position of "<main>hello</main>" 72 73 PASS queryCommand('formatBlock') returned "nav" selecting first position of "<nav>hello</nav>" 73 74 PASS queryCommand('formatBlock') returned "p" selecting first position of "<p>hello</p>" -
trunk/LayoutTests/editing/execCommand/remove-format-elements-expected.txt
r70285 r140341 2 2 acronym, b, bdo, big, cite, code, dfn, em, font, i, ins, kbd, nobr, q, s, samp, small, strike, strong, sub, sup, tt, u, var 3 3 Preserved 4 noscript, a, abbr, address, applet, area, article, aside, audio, base, basefont, bgsound, blockquote, body, br, button, canvas, caption, center, col, colgroup, command, datagrid, datalist, dcell, dcol, dd, del, details, dir, div, dl, drow, dt, embed, fieldset, figcaption, figure, footer, form, frame, frameset, h1, h2, h3, h4, h5, h6, head, header, hgroup, hr, html, iframe, image, img, input, isindex, keygen, label, layer, legend, li, link, listing, ma p, mark, marquee, menu, meta, meter, nav, noembed, noframes, nolayer, noscript, object, ol, optgroup, option, p, param, plaintext, pre, progress, rp, rt, ruby, script, section, select, source, span, style, summary, table, tbody, td, textarea, tfoot, th, thead, title, tr, track, ul, video, wbr, xmp4 noscript, a, abbr, address, applet, area, article, aside, audio, base, basefont, bgsound, blockquote, body, br, button, canvas, caption, center, col, colgroup, command, datagrid, datalist, dcell, dcol, dd, del, details, dir, div, dl, drow, dt, embed, fieldset, figcaption, figure, footer, form, frame, frameset, h1, h2, h3, h4, h5, h6, head, header, hgroup, hr, html, iframe, image, img, input, isindex, keygen, label, layer, legend, li, link, listing, main, map, mark, marquee, menu, meta, meter, nav, noembed, noframes, nolayer, noscript, object, ol, optgroup, option, p, param, plaintext, pre, progress, rp, rt, ruby, script, section, select, source, span, style, summary, table, tbody, td, textarea, tfoot, th, thead, title, tr, track, ul, video, wbr, xmp 5 5 Exceptions 6 6 -
trunk/LayoutTests/editing/execCommand/remove-format-elements.html
r120173 r140341 23 23 "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", 24 24 "i", "iframe", "image", "img", "input", "ins", "isindex", "kbd", "keygen", "label", "layer", "legend", ["ul", "li"], "link", "listing", 25 "ma p", "mark", "marquee", "menu", "meta", "meter", "nav", "nobr", "noembed", "noframes", "nolayer", "noscript",25 "main", "map", "mark", "marquee", "menu", "meta", "meter", "nav", "nobr", "noembed", "noframes", "nolayer", "noscript", 26 26 "object", "ol", "optgroup", "option", "p", "param", "plaintext", "pre", "progress", "q", "rp", "rt", "ruby", 27 27 "s", "samp", "script", "section", "select", "small", "source", "span", "strike", "strong", "style", "sub", "summary", "sup", -
trunk/LayoutTests/editing/execCommand/script-tests/query-format-block.js
r74603 r140341 102 102 queryFormatBlock(selectFirstPosition, '<header>hello</header>', 'header'); 103 103 queryFormatBlock(selectFirstPosition, '<hgroup>hello</hgroup>', 'hgroup'); 104 queryFormatBlock(selectFirstPosition, '<main>hello</main>', 'main'); 104 105 queryFormatBlock(selectFirstPosition, '<nav>hello</nav>', 'nav'); 105 106 queryFormatBlock(selectFirstPosition, '<p>hello</p>', 'p'); -
trunk/LayoutTests/fast/block/child-not-removed-from-parent-lineboxes-crash.html
r120681 r140341 6 6 testRunner.dumpAsText(); 7 7 8 var tags = ['a', 'abbr', 'acronym', 'address', 'applet', 'area', 'article', 'aside', 'audio', 'b', 'base', 'basefont', 'bdo', 'bgsound', 'big', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'command', 'datagrid', 'datalist', 'dcell', 'dcol', 'drow', 'dd', 'del', 'details', 'dfn', 'dir', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'child', 'image', 'img', 'input', 'ins', 'isindex', 'kbd', 'keygen', 'label', 'layer', 'legend', 'li', 'link', 'listing', 'ma p', 'mark', 'marquee', 'menu', 'meta', 'meter', 'nav', 'nobr', 'noembed', 'noframes', 'nolayer', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'plaintext', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr', 'xmp', 'noscript', 'noscript', 'math', 'mfrac', 'mfenced', 'msubsup', 'mrow', 'mover', 'munder', 'munderover', 'msqrt', 'mroot', 'mi', 'mn', 'mo', 'mtext', 'msub', 'msup', 'ms', 'mglyph', 'malignmark', 'annotation-xml', 'a', 'access', 'anchor', 'br', 'card', 'do', 'fieldset', 'go', 'head', 'img', 'input', 'insertedLegend', 'meta', 'noop', 'onevent', 'optgroup', 'option', 'p', 'postfield', 'prev', 'refresh', 'select', 'setvar', 'table', 'td', 'template', 'timer', 'tr', 'a', 'altGlyph', 'altGlyphDef', 'altGlyphItem', 'animate', 'animateColor', 'animateMotion', 'animateTransform', 'set', 'circle', 'clipPath', 'color_profile', 'cursor', 'defs', 'desc', 'ellipse', 'feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence', 'filter', 'font', 'font_face', 'font_face_format', 'font_face_name', 'font_face_src', 'font_face_uri', 'foreignObject', 'g', 'glyph', 'glyphRef', 'hkern', 'image', 'line', 'linearGradient', 'marker', 'mask', 'metadata', 'missing_glyph', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'script', 'stop', 'style', 'svg', 'switch', 'symbol', 'text', 'textPath', 'title', 'tref', 'tspan', 'use', 'view', 'vkern']8 var tags = ['a', 'abbr', 'acronym', 'address', 'applet', 'area', 'article', 'aside', 'audio', 'b', 'base', 'basefont', 'bdo', 'bgsound', 'big', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'command', 'datagrid', 'datalist', 'dcell', 'dcol', 'drow', 'dd', 'del', 'details', 'dfn', 'dir', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'child', 'image', 'img', 'input', 'ins', 'isindex', 'kbd', 'keygen', 'label', 'layer', 'legend', 'li', 'link', 'listing', 'main', 'map', 'mark', 'marquee', 'menu', 'meta', 'meter', 'nav', 'nobr', 'noembed', 'noframes', 'nolayer', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'plaintext', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr', 'xmp', 'noscript', 'noscript', 'math', 'mfrac', 'mfenced', 'msubsup', 'mrow', 'mover', 'munder', 'munderover', 'msqrt', 'mroot', 'mi', 'mn', 'mo', 'mtext', 'msub', 'msup', 'ms', 'mglyph', 'malignmark', 'annotation-xml', 'a', 'access', 'anchor', 'br', 'card', 'do', 'fieldset', 'go', 'head', 'img', 'input', 'insertedLegend', 'meta', 'noop', 'onevent', 'optgroup', 'option', 'p', 'postfield', 'prev', 'refresh', 'select', 'setvar', 'table', 'td', 'template', 'timer', 'tr', 'a', 'altGlyph', 'altGlyphDef', 'altGlyphItem', 'animate', 'animateColor', 'animateMotion', 'animateTransform', 'set', 'circle', 'clipPath', 'color_profile', 'cursor', 'defs', 'desc', 'ellipse', 'feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence', 'filter', 'font', 'font_face', 'font_face_format', 'font_face_name', 'font_face_src', 'font_face_uri', 'foreignObject', 'g', 'glyph', 'glyphRef', 'hkern', 'image', 'line', 'linearGradient', 'marker', 'mask', 'metadata', 'missing_glyph', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'script', 'stop', 'style', 'svg', 'switch', 'symbol', 'text', 'textPath', 'title', 'tref', 'tspan', 'use', 'view', 'vkern'] 9 9 10 10 for (i = 0; i < tags.length; i++) -
trunk/LayoutTests/fast/dom/click-method-on-html-element-expected.txt
r107483 r140341 72 72 Pass: Click event handler called for: link 73 73 Pass: Click event handler called for: listing 74 Pass: Click event handler called for: main 74 75 Pass: Click event handler called for: map 75 76 Pass: Click event handler called for: mark -
trunk/LayoutTests/fast/dom/click-method-on-html-element.html
r107483 r140341 27 27 "body","br","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","dir","div","dl","dt", 28 28 "em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html", 29 "i","iframe","img","input","ins","isindex","kbd","keygen","label","layer","legend","li","link","listing","ma p","mark","marquee","menu","meta","meter","nav",29 "i","iframe","img","input","ins","isindex","kbd","keygen","label","layer","legend","li","link","listing","main","map","mark","marquee","menu","meta","meter","nav", 30 30 "nobr","noembed","noframes","nolayer","noscript","object","ol","optgroup","option","output","p","param","plaintext","pre","progress","q","rp","rt","ruby","s", 31 31 "samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead", -
trunk/LayoutTests/fast/dom/wrapper-classes-expected.txt
r135093 r140341 342 342 PASS tagJSWrapperPrototypeClass('listing') is 'HTMLPreElementPrototype' 343 343 PASS tagJSWrapperConstructorClass('listing') is 'HTMLPreElementConstructor' 344 PASS tagJSWrapperClass('main') is 'HTMLElement' 345 PASS tagJSWrapperPrototypeClass('main') is 'HTMLElementPrototype' 346 PASS tagJSWrapperConstructorClass('main') is 'HTMLElementConstructor' 344 347 PASS tagJSWrapperClass('map') is 'HTMLMapElement' 345 348 PASS tagJSWrapperPrototypeClass('map') is 'HTMLMapElementPrototype' -
trunk/LayoutTests/fast/dom/wrapper-classes.html
r123300 r140341 213 213 testTag("link", "HTMLLinkElement"); 214 214 testTag("listing", "HTMLPreElement"); 215 testTag("main", "HTMLElement"); 215 216 testTag("map", "HTMLMapElement"); 216 217 testTag("marquee", "HTMLMarqueeElement"); -
trunk/LayoutTests/fast/forms/access-key-for-all-elements-expected.txt
r100805 r140341 339 339 PASS pressKey(testElement.accessKey);[clicked, focused] is [true, false] 340 340 341 Check for MAIN tag 342 PASS testElement.accessKey is defined. 343 PASS testElement.accessKey ='k'; testElement.accessKey == 'k' is true 344 PASS pressKey(testElement.accessKey);[clicked, focused] is [true, false] 345 341 346 Check for MAP tag 342 347 PASS testElement.accessKey is defined. -
trunk/LayoutTests/fast/forms/access-key-for-all-elements.html
r100805 r140341 20 20 "body","br","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","dir","div","dl","dt", 21 21 "em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html", 22 "i","iframe","img","ins","kbd","keygen","label","layer","li","link","listing","ma p","mark","marquee","menu","meta","meter","nav",22 "i","iframe","img","ins","kbd","keygen","label","layer","li","link","listing","main","map","mark","marquee","menu","meta","meter","nav", 23 23 "nobr","noembed","noframes","nolayer","noscript","object","ol","output","p","param","plaintext","pre","progress","q","rp","rt","ruby","s", 24 24 "samp","script","section","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","tfoot","th","thead", -
trunk/LayoutTests/platform/chromium/fast/dom/wrapper-classes-expected.txt
r108729 r140341 342 342 FAIL tagJSWrapperPrototypeClass('listing') should be HTMLPreElementPrototype. Was Object. 343 343 FAIL tagJSWrapperConstructorClass('listing') should be HTMLPreElementConstructor. Was Function. 344 PASS tagJSWrapperClass('main') is 'HTMLElement' 345 FAIL tagJSWrapperPrototypeClass('main') should be HTMLElementPrototype. Was Object. 346 FAIL tagJSWrapperConstructorClass('main') should be HTMLElementConstructor. Was Function. 344 347 PASS tagJSWrapperClass('map') is 'HTMLMapElement' 345 348 FAIL tagJSWrapperPrototypeClass('map') should be HTMLMapElementPrototype. Was Object. -
trunk/Source/WebCore/ChangeLog
r140340 r140341 1 2013-01-21 Michael[tm] Smith <mike@w3.org> 2 3 Implement the HTML <main> element. 4 https://bugs.webkit.org/show_bug.cgi?id=103172 5 6 Reviewed by Chris Fleizach. 7 8 Authored by Steve Faulkner <faulkner.steve@gmail.com> 9 10 <main> should behave the same as <nav>, <section>, and <article>, and <aside>. 11 <main> should expose AXLandmarkMain correctly on each platform. 12 13 Tests: fast/html/main-element.html 14 platform/chromium/accessibility/main-element.html 15 platform/mac/accessibility/main-element.html 16 17 * accessibility/AccessibilityRenderObject.cpp: 18 (WebCore::AccessibilityRenderObject::determineAccessibilityRole): 19 * css/html.css: 20 (article, aside, footer, header, hgroup, main, nav, section): 21 * editing/FormatBlockCommand.cpp: 22 (WebCore::isElementForFormatBlock): 23 * html/HTMLTagNames.in: 24 * html/parser/HTMLStackItem.h: 25 (WebCore::HTMLStackItem::isSpecialNode): 26 * html/parser/HTMLTreeBuilder.cpp: 27 (WebCore::HTMLTreeBuilder::processStartTagForInBody): 28 (WebCore::HTMLTreeBuilder::processEndTagForInBody): 29 1 30 2013-01-21 Joanmarie Diggs <jdiggs@igalia.com> 2 31 -
trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp
r139663 r140341 2538 2538 return DocumentArticleRole; 2539 2539 2540 if (node && node->hasTagName(mainTag)) 2541 return LandmarkMainRole; 2542 2540 2543 if (node && node->hasTagName(navTag)) 2541 2544 return LandmarkNavigationRole; -
trunk/Source/WebCore/css/html.css
r140097 r140341 82 82 } 83 83 84 article, aside, footer, header, hgroup, nav, section {84 article, aside, footer, header, hgroup, main, nav, section { 85 85 display: block 86 86 } -
trunk/Source/WebCore/editing/FormatBlockCommand.cpp
r89683 r140341 137 137 blockTags.add(headerTag); 138 138 blockTags.add(hgroupTag); 139 blockTags.add(mainTag); 139 140 blockTags.add(navTag); 140 141 blockTags.add(pTag); -
trunk/Source/WebCore/html/HTMLTagNames.in
r140097 r140341 81 81 link constructorNeedsCreatedByParser 82 82 listing interfaceName=HTMLPreElement 83 main interfaceName=HTMLElement 83 84 map 84 85 mark interfaceName=HTMLElement -
trunk/Source/WebCore/html/parser/HTMLStackItem.h
r126355 r140341 169 169 || tagName == HTMLNames::linkTag 170 170 || tagName == HTMLNames::listingTag 171 || tagName == HTMLNames::mainTag 171 172 || tagName == HTMLNames::marqueeTag 172 173 || tagName == HTMLNames::menuTag -
trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp
r139959 r140341 692 692 || token->name() == headerTag 693 693 || token->name() == hgroupTag 694 || token->name() == mainTag 694 695 || token->name() == menuTag 695 696 || token->name() == navTag … … 1817 1818 || token->name() == hgroupTag 1818 1819 || token->name() == listingTag 1820 || token->name() == mainTag 1819 1821 || token->name() == menuTag 1820 1822 || token->name() == navTag
Note: See TracChangeset
for help on using the changeset viewer.