| @@ 16-35 (lines=20) @@ | ||
| 13 | * |
|
| 14 | * https://html.spec.whatwg.org/multipage/semantics.html#the-del-element |
|
| 15 | */ |
|
| 16 | class Del extends OpenElement implements FlowContent, PhrasingContent, InlineElement, TransparentElement |
|
| 17 | { |
|
| 18 | protected function getAllowedAttributes() |
|
| 19 | { |
|
| 20 | $delAllowedAttributes = array( |
|
| 21 | '/^cite$/i' => Element::ATTR_URI, |
|
| 22 | '/^datetime$/i' => Element::ATTR_CS_STRING |
|
| 23 | ); |
|
| 24 | ||
| 25 | return array_merge( |
|
| 26 | $delAllowedAttributes, |
|
| 27 | parent::getAllowedAttributes() |
|
| 28 | ); |
|
| 29 | } |
|
| 30 | ||
| 31 | public function isTransparentElement() |
|
| 32 | { |
|
| 33 | return true; |
|
| 34 | } |
|
| 35 | } |
|
| 36 | ||
| @@ 16-35 (lines=20) @@ | ||
| 13 | * |
|
| 14 | * https://html.spec.whatwg.org/multipage/semantics.html#the-ins-element |
|
| 15 | */ |
|
| 16 | class Ins extends OpenElement implements FlowContent, PhrasingContent, InlineElement, TransparentElement |
|
| 17 | { |
|
| 18 | protected function getAllowedAttributes() |
|
| 19 | { |
|
| 20 | $insAllowedAttributes = array( |
|
| 21 | '/^cite$/i' => Element::ATTR_URI, |
|
| 22 | '/^datetime$/i' => Element::ATTR_CS_STRING |
|
| 23 | ); |
|
| 24 | ||
| 25 | return array_merge( |
|
| 26 | $insAllowedAttributes, |
|
| 27 | parent::getAllowedAttributes() |
|
| 28 | ); |
|
| 29 | } |
|
| 30 | ||
| 31 | public function isTransparentElement() |
|
| 32 | { |
|
| 33 | return true; |
|
| 34 | } |
|
| 35 | } |
|
| 36 | ||
| @@ 15-33 (lines=19) @@ | ||
| 12 | * |
|
| 13 | * https://html.spec.whatwg.org/multipage/semantics.html#the-map-element |
|
| 14 | */ |
|
| 15 | class Map extends OpenElement implements FlowContent, PhrasingContent, TransparentElement |
|
| 16 | { |
|
| 17 | protected function getAllowedAttributes() |
|
| 18 | { |
|
| 19 | $mapAllowedAttributes = array( |
|
| 20 | '/^name$/i' => Element::ATTR_CS_STRING |
|
| 21 | ); |
|
| 22 | ||
| 23 | return array_merge( |
|
| 24 | $mapAllowedAttributes, |
|
| 25 | parent::getAllowedAttributes() |
|
| 26 | ); |
|
| 27 | } |
|
| 28 | ||
| 29 | public function isTransparentElement() |
|
| 30 | { |
|
| 31 | return true; |
|
| 32 | } |
|
| 33 | } |
|
| 34 | ||