Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Create a HTMLUnknownElement when using createElement('image')
https://bugs.webkit.org/show_bug.cgi?id=125896

Patch by László Langó <llango.u-szeged@partner.samsung.com> on 2014-02-06
Reviewed by Antti Koivisto.

Source/WebCore:

Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/fd8a7b65f3300fb9245db24d5ed240c80b7f76ad

* html/HTMLTagNames.in:

LayoutTests:

* fast/dom/wrapper-classes-expected.txt:
* fast/dom/wrapper-classes.html:

Canonical link: https://commits.webkit.org/146312@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163528 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
LaszloLango authored and webkit-commit-queue committed Feb 6, 2014
1 parent 3ec341b commit df39114
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 5 deletions.
10 changes: 10 additions & 0 deletions LayoutTests/ChangeLog
@@ -1,3 +1,13 @@
2014-02-06 László Langó <llango.u-szeged@partner.samsung.com>

Create a HTMLUnknownElement when using createElement('image')
https://bugs.webkit.org/show_bug.cgi?id=125896

Reviewed by Antti Koivisto.

* fast/dom/wrapper-classes-expected.txt:
* fast/dom/wrapper-classes.html:

2014-02-06 Youenn Fablet <youennf@gmail.com>

[XHR] Ensure response return null when error flag is set for blob and arraybuffer
Expand Down
6 changes: 3 additions & 3 deletions LayoutTests/fast/dom/wrapper-classes-expected.txt
Expand Up @@ -305,9 +305,9 @@ PASS tagJSWrapperConstructorClass('i') is 'HTMLElementConstructor'
PASS tagJSWrapperClass('iframe') is 'HTMLIFrameElement'
PASS tagJSWrapperPrototypeClass('iframe') is 'HTMLIFrameElementPrototype'
PASS tagJSWrapperConstructorClass('iframe') is 'HTMLIFrameElementConstructor'
PASS tagJSWrapperClass('image') is 'HTMLElement'
PASS tagJSWrapperPrototypeClass('image') is 'HTMLElementPrototype'
PASS tagJSWrapperConstructorClass('image') is 'HTMLElementConstructor'
PASS tagJSWrapperClass('image') is 'HTMLUnknownElement'
PASS tagJSWrapperPrototypeClass('image') is 'HTMLUnknownElementPrototype'
PASS tagJSWrapperConstructorClass('image') is 'HTMLUnknownElementConstructor'
PASS tagJSWrapperClass('img') is 'HTMLImageElement'
PASS tagJSWrapperPrototypeClass('img') is 'HTMLImageElementPrototype'
PASS tagJSWrapperConstructorClass('img') is 'HTMLImageElementConstructor'
Expand Down
2 changes: 1 addition & 1 deletion LayoutTests/fast/dom/wrapper-classes.html
Expand Up @@ -200,7 +200,7 @@
testTag("html", "HTMLHtmlElement");
testTag("i", "HTMLElement");
testTag("iframe", "HTMLIFrameElement");
testTag("image", "HTMLElement");
testTag("image", "HTMLUnknownElement");
testTag("img", "HTMLImageElement");
testTag("input", "HTMLInputElement");
testTag("ins", "HTMLModElement");
Expand Down
11 changes: 11 additions & 0 deletions Source/WebCore/ChangeLog
@@ -1,3 +1,14 @@
2014-02-06 László Langó <llango.u-szeged@partner.samsung.com>

Create a HTMLUnknownElement when using createElement('image')
https://bugs.webkit.org/show_bug.cgi?id=125896

Reviewed by Antti Koivisto.

Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/fd8a7b65f3300fb9245db24d5ed240c80b7f76ad

* html/HTMLTagNames.in:

2014-02-06 Youenn Fablet <youennf@gmail.com>

[XHR] Ensure response return null when error flag is set for blob and arraybuffer
Expand Down
2 changes: 1 addition & 1 deletion Source/WebCore/html/HTMLTagNames.in
Expand Up @@ -64,7 +64,7 @@ hr interfaceName=HTMLHRElement
html generateTypeHelpers
i interfaceName=HTMLElement
iframe interfaceName=HTMLIFrameElement, generateTypeHelpers
image interfaceName=HTMLElement
image interfaceName=HTMLUnknownElement
img interfaceName=HTMLImageElement, constructorNeedsFormElement, generateTypeHelpers
input constructorNeedsFormElement, constructorNeedsCreatedByParser, generateTypeHelpers
ins interfaceName=HTMLModElement
Expand Down

0 comments on commit df39114

Please sign in to comment.