-
Notifications
You must be signed in to change notification settings - Fork 2
HTML Elements
Trevor Rowbotham edited this page Jun 3, 2021
·
6 revisions
A list of HTML elements that implement additional methods or properties. If the the element isn't listed, then support for properties and methods on that element have not been implemented.
Most global attributes and legacy attributes are not supported. So you won't be able to do
$element->onload, but instead will need to do $element->getAttribute('onload');
- HTMLAnchorElement
- HTMLAreaElement
- HTMLBaseElement
- HTMLElement
- HTMLImageElement
- HTMLLinkElement
- HTMLMetaElement
- HTMLStyleElement
- HTMLTableCellElement
- HTMLTableColElement
- HTMLTableElement
- HTMLTableRowElement
- HTMLTableSectionElement
- HTMLTemplateElement
- HTMLTimeElement
- HTMLTimeElement
- HTMLHyperlinkElementUtils
✔ = Implemented ❌ = Not Implemented
includes HTMLHyperlinkElementUtils
| Feature | Status | Notes |
|---|---|---|
| target | ✔ | |
| download | ✔ | |
| ping | ✔ | |
| rel | ✔ | |
| relList | ✔ | |
| hrefLang | ✔ | |
| type | ✔ | |
| text | ✔ | |
| referrerPolicy | ❌ |
includes HTMLHyperlinkElementUtils
| Feature | Status | Notes |
|---|---|---|
| href | ✔ | |
| target | ✔ |
| Feature | Status | Notes |
|---|---|---|
| accessKey | ❌ | |
| accessKeyLabel | ❌ | |
| autocapitalize | ❌ | |
| autofocus | ❌ | |
| contentEditable | ✔ | Implemented, but broken |
| dataset | ❌ | |
| dir | ✔ | |
| draggable | ✔ | |
| enterKeyHint | ❌ | |
| hidden | ✔ | |
| inputMode | ❌ | |
| isContentEditable | ✔ | Implemented, but broken |
| spellcheck | ✔ | Implemented, but broken |
| tabIndex | ✔ | Implemented, but broken |
| lang | ✔ | |
| innerText | ❌ | |
| outerText | ❌ | |
| nonce | ❌ | |
| translate | ✔ | Implemented, but broken |
| click() | ❌ | |
| focus() | ❌ | |
| blur() | ❌ |
| Feature | Status | Notes |
|---|---|---|
| src | ✔ |
| Feature | Status | Notes |
|---|---|---|
| href | ✔ | |
| crossOrigin | ✔ | |
| rel | ✔ | |
| as | ❌ | |
| relList | ✔ | |
| media | ✔ | |
| integrity | ❌ | |
| hrefLang | ✔ | |
| type | ✔ | |
| sizes | ✔ | |
| imageSrcset | ❌ | |
| imageSizes | ❌ | |
| referrerPolicy | ❌ | |
| disabled | ❌ |
| Feature | Status | Notes |
|---|---|---|
| name | ✔ | |
| httpEquiv | ✔ | |
| content | ✔ |
| Feature | Status | Notes |
|---|---|---|
| media | ✔ | |
| type | ✔ |
| Feature | Status | Notes |
|---|---|---|
| colSpan | ✔ | |
| rowSpan | ✔ | |
| headers | ✔ | |
| cellIndex | ✔ | |
| scope | ❌ | |
| abbr | ❌ |
| Feature | Status | Notes |
|---|---|---|
| span | ✔ |
| Feature | Status | Notes |
|---|---|---|
| caption | ✔ | |
| createCaption() | ✔ | |
| deleteCaption() | ✔ | |
| tHead | ✔ | |
| createTHead() | ✔ | |
| deleteTHead() | ✔ | |
| tFoot | ✔ | |
| createTFoot() | ✔ | |
| deleteTFoot() | ✔ | |
| tBodies | ✔ | |
| createTBody() | ✔ | |
| rows | ✔ | |
| insertRow() | ✔ | |
| deleteRow() | ✔ |
| Feature | Status | Notes |
|---|---|---|
| rowIndex | ✔ | |
| sectionRowIndex | ✔ | |
| cells | ✔ | |
| insertCell() | ✔ | |
| deleteCell() | ✔ |
| Feature | Status | Notes |
|---|---|---|
| rows | ✔ | |
| insertRow() | ✔ | |
| deleteRow() | ✔ |
| Feature | Status | Notes |
|---|---|---|
| content | ✔ |
| Feature | Status | Notes |
|---|---|---|
| dateTime | ✔ |
| Feature | Status | Notes |
|---|---|---|
| text | ✔ |
| Feature | Status | Notes |
|---|---|---|
| href | ✔ | |
| origin | ✔ | Do not rely on for security as document URLs are user provided values |
| protocol | ✔ | |
| username | ✔ | |
| password | ✔ | |
| host | ✔ | |
| hostname | ✔ | |
| port | ✔ | |
| pathname | ✔ | |
| search | ✔ | |
| hash | ✔ |