Skip to content

Commit

Permalink
Merge pull request w3c#387 from dstorey/Add-Exposed
Browse files Browse the repository at this point in the history
Fixes w3c#345 Add [Exposed] to SVG interfaces
  • Loading branch information
boggydigital authored Mar 22, 2018
2 parents e7368f6 + 1ca313d commit 366ba70
Show file tree
Hide file tree
Showing 12 changed files with 136 additions and 71 deletions.
15 changes: 10 additions & 5 deletions master/coords.html
Original file line number Diff line number Diff line change
Expand Up @@ -3224,7 +3224,8 @@ <h3 id="InterfaceSVGTransform">Interface SVGTransform</h3>
<a href="#TransformMatrixObject">matrix object</a>
is always kept synchronized with its <a href="#TransformValue">value</a>.</p>

<pre class="idl">interface <b>SVGTransform</b> {
<pre class="idl">[Exposed=Window]
interface <b>SVGTransform</b> {

// Transform Types
const unsigned short <a href="coords.html#__svg__SVGTransform__SVG_TRANSFORM_UNKNOWN">SVG_TRANSFORM_UNKNOWN</a> = 0;
Expand Down Expand Up @@ -3443,7 +3444,8 @@ <h3 id="InterfaceSVGTransformList">Interface SVGTransformList</h3>
either a <a href="https://drafts.csswg.org/css-transforms-1/#typedef-transform-list">&lt;transform-list&gt;</a>
or the keyword <span class='prop-value'>none</span>.</p>

<pre class="idl">interface <b>SVGTransformList</b> {
<pre class="idl">[Exposed=Window]
interface <b>SVGTransformList</b> {

readonly attribute unsigned long <a href="types.html#__svg__SVGNameList__length">length</a>;
readonly attribute unsigned long <a href="types.html#__svg__SVGNameList__numberOfItems">numberOfItems</a>;
Expand Down Expand Up @@ -3523,7 +3525,8 @@ <h3 id="InterfaceSVGAnimatedTransformList">Interface SVGAnimatedTransformList</h
<a>'linearGradient/gradientTransform'</a> or
<a>'pattern/patternTransform'</a>).</p>

<pre class="idl">interface <b>SVGAnimatedTransformList</b> {
<pre class="idl">[Exposed=Window]
interface <b>SVGAnimatedTransformList</b> {
[SameObject] readonly attribute <a>SVGTransformList</a> <a href="coords.html#__svg__SVGAnimatedTransformList__baseVal">baseVal</a>;
[SameObject] readonly attribute <a>SVGTransformList</a> <a href="coords.html#__svg__SVGAnimatedTransformList__animVal">animVal</a>;
};</pre>
Expand Down Expand Up @@ -3552,7 +3555,8 @@ <h3 id="InterfaceSVGPreserveAspectRatio">Interface SVGPreserveAspectRatio</h3>
<a href="#__svg__SVGAnimatedPreserveAspectRatio__animVal">animVal</a> member of
an <a>SVGAnimatedPreserveAspectRatio</a>).</p>

<pre class="idl">interface <b>SVGPreserveAspectRatio</b> {
<pre class="idl">[Exposed=Window]
interface <b>SVGPreserveAspectRatio</b> {

// Alignment Types
const unsigned short <a href="coords.html#__svg__SVGPreserveAspectRatio__SVG_PRESERVEASPECTRATIO_UNKNOWN">SVG_PRESERVEASPECTRATIO_UNKNOWN</a> = 0;
Expand Down Expand Up @@ -3690,7 +3694,8 @@ <h3 id="InterfaceSVGAnimatedPreserveAspectRatio">Interface SVGAnimatedPreserveAs
<p>An <a>SVGAnimatedPreserveAspectRatio</a> object is used to <a>reflect</a>
the <a>'preserveAspectRatio'</a> attribute.</p>

<pre class="idl">interface <b>SVGAnimatedPreserveAspectRatio</b> {
<pre class="idl">[Exposed=Window]
interface <b>SVGAnimatedPreserveAspectRatio</b> {
[SameObject] readonly attribute <a>SVGPreserveAspectRatio</a> <a href="coords.html#__svg__SVGAnimatedPreserveAspectRatio__baseVal">baseVal</a>;
[SameObject] readonly attribute <a>SVGPreserveAspectRatio</a> <a href="coords.html#__svg__SVGAnimatedPreserveAspectRatio__animVal">animVal</a>;
};</pre>
Expand Down
6 changes: 4 additions & 2 deletions master/embedded.html
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,8 @@ <h3 id="InterfaceSVGImageElement">Interface SVGImageElement</h3>

<p>An <a>SVGImageElement</a> object represents an <a>'image'</a> element in the DOM.</p>

<pre class="idl">interface <b>SVGImageElement</b> : <a>SVGGraphicsElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGImageElement</b> : <a>SVGGraphicsElement</a> {
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="embedded.html#__svg__SVGImageElement__x">x</a>;
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="embedded.html#__svg__SVGImageElement__y">y</a>;
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="embedded.html#__svg__SVGImageElement__width">width</a>;
Expand Down Expand Up @@ -622,7 +623,8 @@ <h3 id="InterfaceSVGForeignObjectElement">Interface SVGForeignObjectElement</h3>
<p>An <a>SVGForeignObjectElement</a> object represents a <a>'foreignObject'</a>
in the DOM.</p>

<pre class="idl">interface <b>SVGForeignObjectElement</b> : <a>SVGGraphicsElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGForeignObjectElement</b> : <a>SVGGraphicsElement</a> {
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="embedded.html#__svg__SVGForeignObjectElement__x">x</a>;
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="embedded.html#__svg__SVGForeignObjectElement__y">y</a>;
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="embedded.html#__svg__SVGForeignObjectElement__width">width</a>;
Expand Down
6 changes: 4 additions & 2 deletions master/interact.html
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,8 @@ <h3 id="InterfaceSVGCursorElement">Interface SVGCursorElement</h3>
<p>An <a>SVGCursorElement</a> object represents a <a>'cursor element'</a>
element in the DOM.</p>

<pre class="idl">interface <b>SVGCursorElement</b> : <a>SVGElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGCursorElement</b> : <a>SVGElement</a> {
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="interact.html#__svg__SVGCursorElement__x">x</a>;
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="interact.html#__svg__SVGCursorElement__y">y</a>;
};
Expand All @@ -1319,7 +1320,8 @@ <h3 id="InterfaceSVGScriptElement">Interface SVGScriptElement</h3>

<p>An <a>SVGScriptElement</a> object represents a <a>'script'</a> element in the DOM.</p>

<pre class="idl">interface <b>SVGScriptElement</b> : <a>SVGElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGScriptElement</b> : <a>SVGElement</a> {
attribute DOMString <a href="interact.html#__svg__SVGScriptElement__type">type</a>;
attribute DOMString? <a href="interact.html#__svg__SVGScriptElement__crossOrigin">crossOrigin</a>;
};
Expand Down
6 changes: 4 additions & 2 deletions master/linking.html
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,8 @@ <h3 id="InterfaceSVGAElement">Interface SVGAElement</h3>

<p>An <a>SVGElement</a> object represents an <a>'a'</a> element in the DOM.</p>

<pre class="idl">interface <b>SVGAElement</b> : <a>SVGGraphicsElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGAElement</b> : <a>SVGGraphicsElement</a> {
[SameObject] readonly attribute <a>SVGAnimatedString</a> <a href="linking.html#__svg__SVGAElement__target">target</a>;
[SameObject] readonly attribute <a>SVGAnimatedString</a> <a href="linking.html#__svg__SVGAElement__download">download</a>;
[SameObject] readonly attribute <a>SVGAnimatedString</a> <a href="linking.html#__svg__SVGAElement__rel">rel</a>;
Expand Down Expand Up @@ -1163,7 +1164,8 @@ <h3 id="InterfaceSVGViewElement">Interface SVGViewElement</h3>

<p>An <a>SVGViewElement</a> object represents a <a>'view'</a> element in the DOM.</p>

<pre class="idl">interface <b>SVGViewElement</b> : <a>SVGElement</a> {};
<pre class="idl">[Exposed=Window]
interface <b>SVGViewElement</b> : <a>SVGElement</a> {};

<a>SVGViewElement</a> implements <a>SVGFitToViewBox</a>;
<a>SVGViewElement</a> implements <a>SVGZoomAndPan</a>;</pre>
Expand Down
3 changes: 2 additions & 1 deletion master/painting.html
Original file line number Diff line number Diff line change
Expand Up @@ -3532,7 +3532,8 @@ <h3 id="InterfaceSVGMarkerElement">Interface SVGMarkerElement</h3>
<p>An <a>SVGMarkerElement</a> object represents a <a>'marker element'</a>
element in the DOM.</p>

<pre class="idl">interface <b>SVGMarkerElement</b> : <a>SVGElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGMarkerElement</b> : <a>SVGElement</a> {

// Marker Unit Types
const unsigned short <a href="painting.html#__svg__SVGMarkerElement__SVG_MARKERUNITS_UNKNOWN">SVG_MARKERUNITS_UNKNOWN</a> = 0;
Expand Down
3 changes: 2 additions & 1 deletion master/paths.html
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,8 @@ <h3 id="InterfaceSVGPathElement">Interface SVGPathElement</h3>
<edit:with element="path">
<p>An <a>SVGPathElement</a> object represents a <a>'path'</a> in the DOM.</p>

<pre class="idl">interface <b>SVGPathElement</b> : <a>SVGGeometryElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGPathElement</b> : <a>SVGGeometryElement</a> {
};</pre>

</edit:with>
Expand Down
33 changes: 22 additions & 11 deletions master/pservers.html
Original file line number Diff line number Diff line change
Expand Up @@ -3440,7 +3440,8 @@ <h3 id="InterfaceSVGSolidcolorElement">Interface SVGSolidcolorElement</h3>
<p>An <a>SVGSolidcolorElement</a> object represents an <a>'solidcolor'</a>
element in the DOM.</p>

<pre class="idl">interface <b>SVGSolidcolorElement</b> : <a>SVGElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGSolidcolorElement</b> : <a>SVGElement</a> {
};</pre>

</edit:with>
Expand All @@ -3451,7 +3452,8 @@ <h3 id="InterfaceSVGGradientElement">Interface SVGGradientElement</h3>
<p>The <a>SVGGradientElement</a> interface is used as a base interface
for gradient paint server element interfaces.</p>

<pre class="idl">interface <b>SVGGradientElement</b> : <a>SVGElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGGradientElement</b> : <a>SVGElement</a> {

// Spread Method Types
const unsigned short <a href="pservers.html#__svg__SVGGradientElement__SVG_SPREADMETHOD_UNKNOWN">SVG_SPREADMETHOD_UNKNOWN</a> = 0;
Expand Down Expand Up @@ -3517,7 +3519,8 @@ <h3 id="InterfaceSVGLinearGradientElement">Interface SVGLinearGradientElement</h
<p>An <a>SVGLinearGradientElement</a> object represents an <a>'linearGradient'</a>
in the DOM.</p>

<pre class="idl">interface <b>SVGLinearGradientElement</b> : <a>SVGGradientElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGLinearGradientElement</b> : <a>SVGGradientElement</a> {
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="pservers.html#__svg__SVGLinearGradientElement__x1">x1</a>;
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="pservers.html#__svg__SVGLinearGradientElement__y1">y1</a>;
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="pservers.html#__svg__SVGLinearGradientElement__x2">x2</a>;
Expand All @@ -3542,7 +3545,8 @@ <h3 id="InterfaceSVGRadialGradientElement">Interface SVGRadialGradientElement</h
<p>An <a>SVGRadialGradientElement</a> object represents an <a>'radialGradient'</a>
in the DOM.</p>

<pre class="idl">interface <b>SVGRadialGradientElement</b> : <a>SVGGradientElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGRadialGradientElement</b> : <a>SVGGradientElement</a> {
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="pservers.html#__svg__SVGRadialGradientElement__cx">cx</a>;
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="pservers.html#__svg__SVGRadialGradientElement__cy">cy</a>;
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="pservers.html#__svg__SVGRadialGradientElement__r">r</a>;
Expand Down Expand Up @@ -3571,7 +3575,8 @@ <h3 id="InterfaceSVGMeshGradientElement">Interface SVGMeshGradientElement</h3>
The <a>SVGMeshGradientElement</a> interface corresponds to the
<a>'mesh'</a> element.

<pre class="idl">interface <b>SVGMeshGradientElement</b> : <a>SVGGradientElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGMeshGradientElement</b> : <a>SVGGradientElement</a> {
};</pre>

<p class="note">Note that the <a>SVGMeshGradientElement</a> does not have any
Expand All @@ -3587,7 +3592,8 @@ <h3 id="InterfaceSVGMeshrowElement">Interface SVGMeshrowElement</h3>
<p>An <a>SVGMeshrowElement</a> object represents a <a>'meshrow'</a> element
in the DOM.</p>

<pre class="idl">interface <b>SVGMeshrowElement</b> : <a>SVGElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGMeshrowElement</b> : <a>SVGElement</a> {
};</pre>


Expand All @@ -3596,7 +3602,8 @@ <h3 id="InterfaceSVGMeshpatchElement">Interface SVGMeshpatchElement</h3>
<p>An <a>SVGMeshpatchElement</a> object represents a <a>'meshpatch'</a> element
in the DOM.</p>

<pre class="idl">interface <b>SVGMeshpatchElement</b> : <a>SVGElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGMeshpatchElement</b> : <a>SVGElement</a> {
};</pre>


Expand All @@ -3607,7 +3614,8 @@ <h3 id="InterfaceSVGStopElement">Interface SVGStopElement</h3>
<p>An <a>SVGStopElement</a> object represents a <a>'stop'</a> element
in the DOM.</p>

<pre class="idl">interface <b>SVGStopElement</b> : <a>SVGElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGStopElement</b> : <a>SVGElement</a> {
[SameObject] readonly attribute <a>SVGAnimatedNumber</a> <a href="pservers.html#__svg__SVGStopElement__offset">offset</a>;
};</pre>

Expand All @@ -3626,7 +3634,8 @@ <h3 id="InterfaceSVGPatternElement">Interface SVGPatternElement</h3>
<p>An <a>SVGPatternElement</a> object represents a <a>'pattern'</a> element
in the DOM.</p>

<pre class="idl">interface <b>SVGPatternElement</b> : <a>SVGElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGPatternElement</b> : <a>SVGElement</a> {
[SameObject] readonly attribute <a>SVGAnimatedEnumeration</a> <a href="pservers.html#__svg__SVGPatternElement__patternUnits">patternUnits</a>;
[SameObject] readonly attribute <a>SVGAnimatedEnumeration</a> <a href="pservers.html#__svg__SVGPatternElement__patternContentUnits">patternContentUnits</a>;
[SameObject] readonly attribute <a>SVGAnimatedTransformList</a> <a href="pservers.html#__svg__SVGPatternElement__patternTransform">patternTransform</a>;
Expand Down Expand Up @@ -3677,7 +3686,8 @@ <h3 id="InterfaceSVGHatchElement">Interface SVGHatchElement</h3>

<edit:with element="hatch">

<pre class="idl">interface <b>SVGHatchElement</b> : <a>SVGElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGHatchElement</b> : <a>SVGElement</a> {
};</pre>

<p class="note">Note that <a>SVGHatchElement</a> does not have any
Expand All @@ -3692,7 +3702,8 @@ <h3 id="InterfaceSVGHatchpathElement">Interface SVGHatchpathElement</h3>

<edit:with element="hatchpath">

<pre class="idl">interface <b>SVGHatchpathElement</b> : <a>SVGElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGHatchpathElement</b> : <a>SVGElement</a> {
};</pre>

<p class="note">Note that <a>SVGHatchpathElement</a> does not have any
Expand Down
24 changes: 16 additions & 8 deletions master/shapes.html
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,8 @@ <h3 id="InterfaceSVGRectElement">Interface SVGRectElement</h3>

<p>An <a>SVGRectElement</a> object represents a <a>'rect'</a> element in the DOM.</p>

<pre class="idl">interface <b>SVGRectElement</b> : <a>SVGGeometryElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGRectElement</b> : <a>SVGGeometryElement</a> {
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="shapes.html#__svg__SVGRectElement__x">x</a>;
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="shapes.html#__svg__SVGRectElement__y">y</a>;
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="shapes.html#__svg__SVGRectElement__width">width</a>;
Expand Down Expand Up @@ -705,7 +706,8 @@ <h3 id="InterfaceSVGCircleElement">Interface SVGCircleElement</h3>

<p>An <a>SVGCircleElement</a> object represents a <a>'circle'</a> element in the DOM.</p>

<pre class="idl">interface <b>SVGCircleElement</b> : <a>SVGGeometryElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGCircleElement</b> : <a>SVGGeometryElement</a> {
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="shapes.html#__svg__SVGCircleElement__cx">cx</a>;
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="shapes.html#__svg__SVGCircleElement__cy">cy</a>;
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="shapes.html#__svg__SVGCircleElement__r">r</a>;
Expand All @@ -728,7 +730,8 @@ <h3 id="InterfaceSVGEllipseElement">Interface SVGEllipseElement</h3>

<p>An <a>SVGEllipseElement</a> object represents a <a>'ellipse'</a> element in the DOM.</p>

<pre class="idl">interface <b>SVGEllipseElement</b> : <a>SVGGeometryElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGEllipseElement</b> : <a>SVGGeometryElement</a> {
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="shapes.html#__svg__SVGEllipseElement__cx">cx</a>;
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="shapes.html#__svg__SVGEllipseElement__cy">cy</a>;
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="shapes.html#__svg__SVGEllipseElement__rx">rx</a>;
Expand All @@ -754,7 +757,8 @@ <h3 id="InterfaceSVGLineElement">Interface SVGLineElement</h3>
The <a>SVGLineElement</a> interface corresponds to the <a>'line'</a>
element.

<pre class="idl">interface <b>SVGLineElement</b> : <a>SVGGeometryElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGLineElement</b> : <a>SVGGeometryElement</a> {
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="shapes.html#__svg__SVGLineElement__x1">x1</a>;
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="shapes.html#__svg__SVGLineElement__y1">y1</a>;
[SameObject] readonly attribute <a>SVGAnimatedLength</a> <a href="shapes.html#__svg__SVGLineElement__x2">x2</a>;
Expand All @@ -778,7 +782,8 @@ <h3 id="InterfaceSVGMeshElement">Interface SVGMeshElement</h3>

<p>An <a>SVGMeshElement</a> object represents a <a>'mesh'</a> element in the DOM.</p>

<pre class="idl">interface <b>SVGMeshElement</b> : <a>SVGGeometryElement</a> {};
<pre class="idl">[Exposed=Window]
interface <b>SVGMeshElement</b> : <a>SVGGeometryElement</a> {};

<a>SVGMeshElement</a> implements <a>SVGURIReference</a>;</pre>

Expand Down Expand Up @@ -816,7 +821,8 @@ <h3 id="InterfaceSVGPointList">Interface SVGPointList</h3>
elements are <a>DOMPoint</a> objects. An <a>SVGPointList</a>
object represents a list of points.</p>

<pre class="idl">interface <b>SVGPointList</b> {
<pre class="idl">[Exposed=Window]
interface <b>SVGPointList</b> {

readonly attribute unsigned long <a href="types.html#__svg__SVGNameList__length">length</a>;
readonly attribute unsigned long <a href="types.html#__svg__SVGNameList__numberOfItems">numberOfItems</a>;
Expand Down Expand Up @@ -915,7 +921,8 @@ <h3 id="InterfaceSVGPolylineElement">Interface SVGPolylineElement</h3>

<p>An <a>SVGPolylineElement</a> object represents a <a>'polyline'</a> element in the DOM.</p>

<pre class="idl">interface <b>SVGPolylineElement</b> : <a>SVGGeometryElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGPolylineElement</b> : <a>SVGGeometryElement</a> {
};

<a>SVGPolylineElement</a> implements <a>SVGAnimatedPoints</a>;</pre>
Expand All @@ -929,7 +936,8 @@ <h3 id="InterfaceSVGPolygonElement">Interface SVGPolygonElement</h3>

<p>An <a>SVGPolygonElement</a> object represents a <a>'polygon'</a> element in the DOM.</p>

<pre class="idl">interface <b>SVGPolygonElement</b> : <a>SVGGeometryElement</a> {
<pre class="idl">[Exposed=Window]
interface <b>SVGPolygonElement</b> : <a>SVGGeometryElement</a> {
};

<a>SVGPolygonElement</a> implements <a>SVGAnimatedPoints</a>;</pre>
Expand Down
Loading

0 comments on commit 366ba70

Please sign in to comment.