document.charset should be an alias for document.characterSet
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Jan 2016 01:10:42 +0000 (01:10 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Jan 2016 01:10:42 +0000 (01:10 +0000)
commit6980a65ef9559c12ebd79c594a5e65f8885202eb
tree009c3d7b3fdd47eb8a7e2ac74b40130df9d5fcd4
parent9a30e230fd961e198eaf11bf2fc7955cbbe07d76
document.charset should be an alias for document.characterSet
https://bugs.webkit.org/show_bug.cgi?id=153367

Reviewed by Ryosuke Niwa.

LayoutTests/imported/w3c:

Rebaseline existing W3C tests now that more checks are passing.

* web-platform-tests/dom/interfaces-expected.txt:
* web-platform-tests/dom/nodes/DOMImplementation-createDocument-expected.txt:
* web-platform-tests/dom/nodes/DOMImplementation-createHTMLDocument-expected.txt:
* web-platform-tests/dom/nodes/Document-constructor-expected.txt:
* web-platform-tests/dom/nodes/Node-properties-expected.txt:
* web-platform-tests/html/dom/interfaces-expected.txt:

Source/WebCore:

document.charset should be an alias for document.characterSet:
- https://dom.spec.whatwg.org/#dom-document-charset

It should also be read-only.

Chrome matches the specification.

No new tests, already covered by existing tests.

* dom/Document.h:
* dom/Document.idl:

LayoutTests:

Drop outdated tests.

* fast/dom/Document/document-charset-expected.txt:
* fast/dom/document-attribute-js-null-expected.txt:
* fast/dom/document-attribute-js-null.html:
* fast/encoding/css-charset-default-expected.txt:
* fast/encoding/css-charset-default.xhtml:
* fast/encoding/external-script-charset.js: Removed.
* fast/encoding/external-script-charset.xhtml: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@195497 268f45cc-cd09-0410-ab3c-d52691b4dbfc
18 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/dom/Document/document-charset-expected.txt
LayoutTests/fast/dom/document-attribute-js-null-expected.txt
LayoutTests/fast/dom/document-attribute-js-null.html
LayoutTests/fast/encoding/css-charset-default-expected.txt
LayoutTests/fast/encoding/css-charset-default.xhtml
LayoutTests/fast/encoding/external-script-charset.js [deleted file]
LayoutTests/fast/encoding/external-script-charset.xhtml [deleted file]
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/dom/interfaces-expected.txt
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/DOMImplementation-createDocument-expected.txt
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/DOMImplementation-createHTMLDocument-expected.txt
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-constructor-expected.txt
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-properties-expected.txt
LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/dom/Document.h
Source/WebCore/dom/Document.idl