Skip to content

Commit b35b6e7

Browse files
committed
Deprecate some non-standard and obsolete types and fields.
See: * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bgsound * https://msdn.microsoft.com/en-us/library/windows/apps/hh965347.aspx * https://developer.mozilla.org/en-US/docs/Web/API/window/setImmediate * https://developer.mozilla.org/en-US/docs/Web/API/Window/clearImmediate * https://developer.mozilla.org/en/docs/Web/API/Event/srcElement * https://msdn.microsoft.com/en-us/library/hh869721(v=vs.85).aspx * https://www.w3.org/TR/html5/obsolete.html * https://developer.mozilla.org/en-US/docs/Web/API/HTMLFontElement * https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseFontElement * https://developer.mozilla.org/en-US/docs/Web/API/HTMLHeadElement * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dir * https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/initAnimationEvent * https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/frame * https://developer.mozilla.org/en/docs/Web/API/HTMLTableCellElement * https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement * https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement * https://developer.mozilla.org/en-US/docs/Web/API/HTMLDivElement * https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement * https://developer.mozilla.org/en-US/docs/Web/API/HTMLHeadingElement * https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement * https://developer.mozilla.org/en-US/docs/Web/API/HTMLParagraphElement * https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCaptionElement * https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement * https://developer.mozilla.org/en-US/docs/Web/API/Document/applets * https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement * https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement * https://msdn.microsoft.com/en-us/library/ff521069(v=vs.85).aspx * https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement * https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement * https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement * https://developer.mozilla.org/en-US/docs/Web/API/HTMLPreElement * https://developer.mozilla.org/en-US/docs/Web/API/HTMLBRElement * https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement * https://dom.spec.whatwg.org/#dom-traversal-changes * https://dom.spec.whatwg.org/#nodeiterator * https://dom.spec.whatwg.org/#treewalker * https://dom.spec.whatwg.org/#htmlcollection
1 parent 5dd737b commit b35b6e7

File tree

3 files changed

+106
-4
lines changed

3 files changed

+106
-4
lines changed

src/main/scala/org/scalajs/dom/html.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ package org.scalajs.dom
55
*/
66
object html {
77
type Anchor = raw.HTMLAnchorElement
8+
@deprecated("Obsolete.", "HTML 5")
89
type Applet = raw.HTMLAppletElement
910
type Audio = raw.HTMLAudioElement
1011
type Area = raw.HTMLAreaElement
1112
type AreasCollection = raw.HTMLAreasCollection
1213
type Base = raw.HTMLBaseElement
14+
@deprecated("Obsolete.", "DOM Level 2")
1315
type BaseFont = raw.HTMLBaseFontElement
16+
@deprecated("Non standard.", "forever")
1417
type BGSound = raw.HTMLBGSoundElement
1518
type BlockElement = raw.HTMLBlockElement
1619
type Body = raw.HTMLBodyElement
@@ -20,6 +23,7 @@ object html {
2023
type Collection = raw.HTMLCollection
2124
type DataList = raw.HTMLDataListElement
2225
type DD = raw.HTMLDDElement
26+
@deprecated("Obsolete.", "HTML 4")
2327
type Directory = raw.HTMLDirectoryElement
2428
type Div = raw.HTMLDivElement
2529
type DList = raw.HTMLDListElement
@@ -28,9 +32,12 @@ object html {
2832
type Element = raw.HTMLElement
2933
type Embed = raw.HTMLEmbedElement
3034
type FieldSet = raw.HTMLFieldSetElement
35+
@deprecated("Obsolete.", "HTML 4.01")
3136
type Font = raw.HTMLFontElement
3237
type Form = raw.HTMLFormElement
38+
@deprecated("Obsolete.", "HTML 5")
3339
type Frame = raw.HTMLFrameElement
40+
@deprecated("Obsolete.", "HTML 5")
3441
type FrameSet = raw.HTMLFrameSetElement
3542
type Head = raw.HTMLHeadElement
3643
type Heading = raw.HTMLHeadingElement
@@ -39,18 +46,21 @@ object html {
3946
type IFrame = raw.HTMLIFrameElement
4047
type Image = raw.HTMLImageElement
4148
type Input = raw.HTMLInputElement
49+
@deprecated("Obsolete.", "HTML 4.01")
4250
type IsIndex = raw.HTMLIsIndexElement
4351
type Label = raw.HTMLLabelElement
4452
type Legend = raw.HTMLLegendElement
4553
type LI = raw.HTMLLIElement
4654
type Link = raw.HTMLLinkElement
4755
type Map = raw.HTMLMapElement
56+
@deprecated("Obsolete.", "HTML 5")
4857
type Marquee = raw.HTMLMarqueeElement
4958
type Media = raw.HTMLMediaElement
5059
@inline def Media = raw.HTMLMediaElement
5160
type Menu = raw.HTMLMenuElement
5261
type Meta = raw.HTMLMetaElement
5362
type Mod = raw.HTMLModElement
63+
@deprecated("Obsolete.", "HTML 3.2")
5464
type NextIdElement = raw.HTMLNextIdElement
5565
type Object = raw.HTMLObjectElement
5666
type OList = raw.HTMLOListElement

0 commit comments

Comments
 (0)