haikuwebkit/LayoutTests/accessibility/inline-block-assertion-expe...

12 lines
244 B
Plaintext
Raw Permalink Normal View History

embed element without src and type attributes should represent nothing https://bugs.webkit.org/show_bug.cgi?id=148853 <rdar://problem/22588235> Reviewed by Zalan Bujtas. LayoutTests/imported/w3c: Rebaseline existing tests. * web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements-expected.txt: * web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-05-expected.txt: Source/WebCore: As per the HTML specification, an embed element without src and type attributes should represent nothing: https://html.spec.whatwg.org/multipage/embedded-content.html#the-embed-element This patch fixes the issue by making sure we don't construct a renderer for such embed elements. The new behavior is consistent with Firefox but differs from Chrome. No new tests, already covered by existing tests. * html/HTMLEmbedElement.cpp: (WebCore::HTMLEmbedElement::rendererIsNeeded): LayoutTests: * TestExpectations: Unskip 2 ref-tests that were previously failing. * accessibility/inline-block-assertion-expected.txt: * editing/execCommand/crash-140261-expected.txt: * fast/block/float/4145535Crash-expected.txt: * fast/dom/HTMLDocument/document-plugins-expected.txt: * fast/dom/insertedIntoDocument-child-expected.txt: * fast/dom/insertedIntoDocument-sibling-expected.txt: * fast/dom/plugin-attributes-enumeration-expected.txt: * fast/replaced/percent-height-in-anonymous-block-widget.html: * fast/replaced/replaced-breaking.html: * fast/replaced/table-percent-height.html: * fast/text/international/embed-bidi-style-in-isolate-crash-expected.txt: * imported/blink/fast/css-grid-layout/grid-add-positioned-block-item-after-inline-item-expected.txt: Rebaseline / update existing tests. Canonical link: https://commits.webkit.org/169209@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@192132 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-11-07 23:48:08 +00:00
Make sure that an inline block element is not cast incorrectly causing an assertion.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
ROLE: AXRole: AXWebArea
PASS successfullyParsed is true
TEST COMPLETE