From a2b820faa605fe2fabbf2afa3dd3dfd8179d9c87 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Tue, 19 Dec 2023 13:47:45 +0100 Subject: [PATCH] Remove docs for SVG contentStyleType and contentScriptType attrs --- files/en-us/_redirects.txt | 2 - files/en-us/_wikihistory.json | 8 --- files/en-us/web/api/svgsvgelement/index.md | 2 - .../svg/attribute/contentscripttype/index.md | 49 --------------- .../svg/attribute/contentstyletype/index.md | 59 ------------------- files/en-us/web/svg/attribute/index.md | 2 - files/en-us/web/svg/attribute/style/index.md | 2 - files/en-us/web/svg/element/svg/index.md | 6 -- files/jsondata/SVGData.json | 2 - 9 files changed, 132 deletions(-) delete mode 100644 files/en-us/web/svg/attribute/contentscripttype/index.md delete mode 100644 files/en-us/web/svg/attribute/contentstyletype/index.md diff --git a/files/en-us/_redirects.txt b/files/en-us/_redirects.txt index 0578a1896bc58ad..f3913ed5168ea77 100644 --- a/files/en-us/_redirects.txt +++ b/files/en-us/_redirects.txt @@ -6497,8 +6497,6 @@ /en-US/docs/SVG/Attribute/color-interpolation /en-US/docs/Web/SVG/Attribute/color-interpolation /en-US/docs/SVG/Attribute/color-interpolation-filters /en-US/docs/Web/SVG/Attribute/color-interpolation-filters /en-US/docs/SVG/Attribute/color-profile /en-US/docs/Web/SVG/Attribute/color-profile -/en-US/docs/SVG/Attribute/contentScriptType /en-US/docs/Web/SVG/Attribute/contentScriptType -/en-US/docs/SVG/Attribute/contentStyleType /en-US/docs/Web/SVG/Attribute/contentStyleType /en-US/docs/SVG/Attribute/cursor /en-US/docs/Web/SVG/Attribute/cursor /en-US/docs/SVG/Attribute/cx /en-US/docs/Web/SVG/Attribute/cx /en-US/docs/SVG/Attribute/cy /en-US/docs/Web/SVG/Attribute/cy diff --git a/files/en-us/_wikihistory.json b/files/en-us/_wikihistory.json index 60db8e73468ec21..1f7f046d6a3a387 100644 --- a/files/en-us/_wikihistory.json +++ b/files/en-us/_wikihistory.json @@ -124185,14 +124185,6 @@ "modified": "2020-10-15T21:04:59.286Z", "contributors": ["Sebastianz", "connorshea", "Jeremie"] }, - "Web/SVG/Attribute/contentScriptType": { - "modified": "2020-10-15T21:09:10.002Z", - "contributors": ["Sebastianz", "Jeremie"] - }, - "Web/SVG/Attribute/contentStyleType": { - "modified": "2020-10-15T21:09:14.670Z", - "contributors": ["Sebastianz", "George8211", "Jeremie", "pa7"] - }, "Web/SVG/Attribute/cursor": { "modified": "2020-10-15T21:18:37.523Z", "contributors": [ diff --git a/files/en-us/web/api/svgsvgelement/index.md b/files/en-us/web/api/svgsvgelement/index.md index 1febde981a02dca..fba0c65068b1252 100644 --- a/files/en-us/web/api/svgsvgelement/index.md +++ b/files/en-us/web/api/svgsvgelement/index.md @@ -23,8 +23,6 @@ _This interface also inherits properties from its parent, {{domxref("SVGGraphics - : An {{domxref("SVGAnimatedLength")}} corresponding to the {{SVGAttr("width")}} attribute of the given {{SVGElement("svg")}} element. - {{domxref("SVGSVGElement.height")}} {{ReadOnlyInline}} - : An {{domxref("SVGAnimatedLength")}} corresponding to the {{SVGAttr("height")}} attribute of the given {{SVGElement("svg")}} element. -- {{domxref("SVGSVGElement.contentStyleType")}} - - : An {{domxref("SVGAnimatedLength")}} corresponding to the {{SVGAttr("contentStyleType")}} attribute of the given {{SVGElement("svg")}} element. - {{domxref("SVGSVGElement.pixelUnitToMillimeterX")}} {{Deprecated_Inline}} - : A float representing the size of the pixel unit (as defined by CSS2) along the x-axis of the viewport, which represents a unit somewhere in the range of 70dpi to 120dpi, and, on systems that support this, might actually match the characteristics of the target medium. On systems where it is impossible to know the size of a pixel, a suitable default pixel size is provided. - {{domxref("SVGSVGElement.pixelUnitToMillimeterY")}} {{Deprecated_Inline}} diff --git a/files/en-us/web/svg/attribute/contentscripttype/index.md b/files/en-us/web/svg/attribute/contentscripttype/index.md deleted file mode 100644 index 5c727cd8daad077..000000000000000 --- a/files/en-us/web/svg/attribute/contentscripttype/index.md +++ /dev/null @@ -1,49 +0,0 @@ ---- -title: contentScriptType -slug: Web/SVG/Attribute/contentScriptType -page-type: svg-attribute -status: - - deprecated -browser-compat: svg.elements.svg.contentScriptType ---- - -{{SVGRef}}{{deprecated_header}} - -The **`contentScriptType`** attribute specifies the default scripting language for the given document fragment on the {{SVGElement("svg")}} element. - -This attribute sets the default scripting language used to process the value strings in [event attributes](/en-US/docs/Web/SVG/Attribute#document_event_attributes). This language must be used for all instances of script that do not specify their own scripting language. The value specifies a media type, per [MIME Part Two: Media Types \[RFC2046\]](https://www.ietf.org/rfc/rfc2046.txt). - -## Usage notes - - - - - - - - - - - - - - - - -
Value - One of the content types specified in the - Media Types -
Default valueapplication/ecmascript
AnimatableNo
- -## Specifications - -{{Specifications}} - -## Browser compatibility - -{{Compat}} - -## See also - -- [MIME Part Two: Media Types \[RFC2046\]](https://www.ietf.org/rfc/rfc2046.txt) -- {{SVGElement("script")}} diff --git a/files/en-us/web/svg/attribute/contentstyletype/index.md b/files/en-us/web/svg/attribute/contentstyletype/index.md deleted file mode 100644 index d7924ca0c34e2fd..000000000000000 --- a/files/en-us/web/svg/attribute/contentstyletype/index.md +++ /dev/null @@ -1,59 +0,0 @@ ---- -title: contentStyleType -slug: Web/SVG/Attribute/contentStyleType -page-type: svg-attribute -status: - - deprecated -browser-compat: svg.elements.svg.contentStyleType ---- - -{{SVGRef}}{{deprecated_header}} - -The **`contentStyleType`** attribute specifies the style sheet language for the given document fragment on the {{SVGElement("svg")}} element. - -This language is used for all instances of style that do not specify their own styling language, such as the {{SVGAttr("style")}} attribute that is available on many elements. The value specifies a media type, per [MIME Part Two: Media Types \[RFC2046\]](https://www.ietf.org/rfc/rfc2046.txt). - -## Usage notes - - - - - - - - - - - - - - - - -
Value - One of the content types specified in the - Media Types -
Default valuetext/css
AnimatableNo
- -Since CSS is the only widely deployed style sheet language for online styling and it's already defined as default value if `contentStyleType` is omitted, the attribute is not well supported in user agents. If other style sheet languages become more popular they might not use the {{SVGAttr("style")}} attribute, instead it could be easily declared which style language is used in the {{SVGElement("style")}}'s type attribute. - -The use of `contentStyleType` is therefore deprecated. - -## Specifications - -{{Specifications}} - -## Browser compatibility - -{{Compat}} - -## See also - -- [MIME Part Two: Media Types \[RFC2046\]](https://www.ietf.org/rfc/rfc2046.txt) -- {{SVGElement("style")}} element -- {{SVGAttr("style")}} attribute diff --git a/files/en-us/web/svg/attribute/index.md b/files/en-us/web/svg/attribute/index.md index a4fa660d87482f1..013392e7d6e8135 100644 --- a/files/en-us/web/svg/attribute/index.md +++ b/files/en-us/web/svg/attribute/index.md @@ -50,8 +50,6 @@ Below is a list of all of the attributes available in SVG along with links to re - {{SVGAttr("color-interpolation-filters")}} - {{SVGAttr("color-profile")}} - {{SVGAttr("color-rendering")}} -- {{SVGAttr("contentScriptType")}} -- {{SVGAttr("contentStyleType")}} - {{SVGAttr("crossorigin")}} - {{SVGAttr("cursor")}} - {{SVGAttr("cx")}} diff --git a/files/en-us/web/svg/attribute/style/index.md b/files/en-us/web/svg/attribute/style/index.md index dc6f37dd5ba6fff..70e052648537ae1 100644 --- a/files/en-us/web/svg/attribute/style/index.md +++ b/files/en-us/web/svg/attribute/style/index.md @@ -57,8 +57,6 @@ svg { - : The syntax of style data depends on the style sheet language. By default, the style sheet language is [CSS](/en-US/docs/Web/CSS). - > **Note:** In theory, [the `contentStyleType` attribute](/en-US/docs/Web/SVG/Attribute/contentStyleType) could be used to specify styling languages other than CSS, like [XSL(T)](/en-US/docs/Web/XSLT). However, this was never implemented satisfactorily in browsers, so you should not rely on it. - ## Specifications {{Specifications}} diff --git a/files/en-us/web/svg/element/svg/index.md b/files/en-us/web/svg/element/svg/index.md index e6605059d9d6665..cf38a3ed62edd89 100644 --- a/files/en-us/web/svg/element/svg/index.md +++ b/files/en-us/web/svg/element/svg/index.md @@ -94,12 +94,6 @@ To change the iframe's dimensions try resizing the dotted red border from bottom - {{SVGAttr("baseProfile")}} {{deprecated_inline}} - : The minimum SVG language profile that the document requires. _Value type_: **\** ; _Default value_: none; _Animatable_: **no** -- {{SVGAttr("contentScriptType")}} {{deprecated_inline}} - - : The default scripting language used by the SVG fragment. - _Value type_: **\** ; _Default value_: `application/ecmascript`; _Animatable_: **no** -- {{SVGAttr("contentStyleType")}} {{deprecated_inline}} - - : The default style sheet language used by the SVG fragment. - _Value type_: **\** ; _Default value_: `text/css`; _Animatable_: **no** - {{SVGAttr("height")}} - : The displayed height of the rectangular viewport. (Not the height of its coordinate system.) _Value type_: [**\**](/en-US/docs/Web/SVG/Content_type#length)|[**\**](/en-US/docs/Web/SVG/Content_type#percentage) ; _Default value_: `auto`; _Animatable_: **yes** diff --git a/files/jsondata/SVGData.json b/files/jsondata/SVGData.json index 4f0c9e4c93182bd..79c7835f17fab9c 100644 --- a/files/jsondata/SVGData.json +++ b/files/jsondata/SVGData.json @@ -1506,8 +1506,6 @@ "'width'", "'height'", "'preserveAspectRatio'", - "'contentScriptType'", - "'contentStyleType'", "'viewBox'" ], "interfaces": ["SVGSVGElement"]