From 652b7974159f91a79ae87f6a5b91a14f066e833f Mon Sep 17 00:00:00 2001
From: chaals
Date: Sun, 1 Apr 2018 17:25:16 +0200
Subject: [PATCH] add customElements to Window object
fix #1274
Substantive. This attribute is supported by Gecko/Blink, as determined by manual testing for it.
---
sections/browsers.include | 18 +++++++++++-------
sections/changes.include | 2 ++
2 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/sections/browsers.include b/sections/browsers.include
index d95209e0e8..924d1e73b0 100644
--- a/sections/browsers.include
+++ b/sections/browsers.include
@@ -1002,6 +1002,7 @@
attribute DOMString name;
[PutForwards=href, Unforgeable] readonly attribute Location location;
readonly attribute History history;
+ readonly attribute CustomElementRegistry customElements;
[Replaceable] readonly attribute BarProp locationbar;
[Replaceable] readonly attribute BarProp menubar;
[Replaceable] readonly attribute BarProp personalbar;
@@ -1072,7 +1073,7 @@
- Returns the Window
object of the active document.
+ Returns the {{Window}} object of the active document.
@@ -1096,6 +1097,9 @@
interface must return the {{Document}}'s browsing context's {{WindowProxy}} object, if
there is one, or null otherwise.
+ The customElements
attribute returns the
+ {{CustomElementRegistry}} associated with that {{Window}} object.
+
For historical reasons, {{Window}} objects must also have a writable, configurable,
@@ -2008,12 +2012,12 @@
do the same thing) to access each other. (Can't be set in sandboxed <{iframe}>s.)
-
- A string hostSuffixString
+
+ A string hostSuffixString
is a registrable domain suffix of, or is equal to a
+ is not a registrable domain suffix of and is not equal to">is a registrable domain suffix of, or is equal to a
host originalHost if the following algorithm returns true
:
-
+
1. If hostSuffixString is the empty string, then return false
.
1. Let host be the result of parsing hostSuffixString.
1. If host is failure, then return false
.
@@ -2047,7 +2051,7 @@
1. If this {{Document}} object's active sandboxing flag set has its
sandboxed document.domain
browsing context flag set, then throw a
"{{SecurityError}}" {{DOMException}}.
- 1. Let effectiveDomain be this {{Document}}'s [=concept/origin=]'s
+ 1. Let effectiveDomain be this {{Document}}'s [=concept/origin=]'s
effective domain.
1. If effectiveDomain is null, then throw a "{{SecurityError}}" {{DOMException}}.
1. If the given value is not
@@ -2422,7 +2426,7 @@
StructuredDeserialize) serialized state.
Pages can add serialized state to the
- session history. These are then deserialized and
+ session history. These are then deserialized and
returned to the script when the
user (or script) goes back in the history, thus enabling authors to use the
"navigation" metaphor even in one-page applications.
diff --git a/sections/changes.include b/sections/changes.include
index 2b413619ba..b686e0a117 100644
--- a/sections/changes.include
+++ b/sections/changes.include
@@ -20,6 +20,8 @@
FileAPI is better defined in FileApi spec.
Fixed issue 1217
+ Added customElements
IDL attribute to the {{Window}} object
+ Fixes #1274. Substantive change matching new implementation of Custom Elements in Blink / Gecko.
Other Pragma Directives removed.
Change to match reality. Fixed issue 1212
Caption end tag can be ommitted.