First parameter to SVGDocument.createEvent() should be mandatory
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 28 Jul 2016 18:14:18 +0000 (18:14 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 28 Jul 2016 18:14:18 +0000 (18:14 +0000)
commit93aa9622a5f1d386b96a41ef73a9bacb280ddff3
tree94677cb82eaa82b4374c680942b47ecfbc6e5b2a
parent0b4841c032641c92d99ec757873490024da2daa4
First parameter to SVGDocument.createEvent() should be mandatory
https://bugs.webkit.org/show_bug.cgi?id=160296

Reviewed by Alex Christensen.

Source/WebCore:

First parameter to SVGDocument.createEvent() should be mandatory:
- https://www.w3.org/TR/SVG2/struct.html#InterfaceDocumentExtensions
- https://dom.spec.whatwg.org/#document

This patch drops createEvent() from SVGDocument so that the spec-compliant
Document.createEvent() is used instead. In the specification, SVGDocument
no longer exists and is a simple Document.

Firefox and Chrome agree with the specification.

Test: svg/dom/SVGDocument-createEvent.html

* svg/SVGDocument.idl:

LayoutTests:

Add test coverage.

* svg/dom/SVGDocument-createEvent-expected.txt: Added.
* svg/dom/SVGDocument-createEvent.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@203821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/svg/dom/SVGDocument-createEvent-expected.txt [new file with mode: 0644]
LayoutTests/svg/dom/SVGDocument-createEvent.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/svg/SVGDocument.idl