| @@ 15-29 (lines=15) @@ | ||
| 12 | * |
|
| 13 | * https://html.spec.whatwg.org/multipage/semantics.html#the-data-element |
|
| 14 | */ |
|
| 15 | class Data extends OpenElement implements FlowContent, PhrasingContent, InlineElement |
|
| 16 | { |
|
| 17 | protected function getAllowedAttributes() |
|
| 18 | { |
|
| 19 | $dataAllowedAttributes = array( |
|
| 20 | '/^value$/i' => Element::ATTR_CS_STRING |
|
| 21 | ); |
|
| 22 | ||
| 23 | return array_merge( |
|
| 24 | $dataAllowedAttributes, |
|
| 25 | parent::getAllowedAttributes() |
|
| 26 | ); |
|
| 27 | } |
|
| 28 | ||
| 29 | } |
|
| 30 | ||
| @@ 15-29 (lines=15) @@ | ||
| 12 | * |
|
| 13 | * https://html.spec.whatwg.org/multipage/semantics.html#the-del-element |
|
| 14 | */ |
|
| 15 | class Del extends OpenElement implements FlowContent, PhrasingContent, InlineElement |
|
| 16 | { |
|
| 17 | protected function getAllowedAttributes() |
|
| 18 | { |
|
| 19 | $delAllowedAttributes = array( |
|
| 20 | '/^cite$/i' => Element::ATTR_URI, |
|
| 21 | '/^datetime$/i' => Element::ATTR_CS_STRING |
|
| 22 | ); |
|
| 23 | ||
| 24 | return array_merge( |
|
| 25 | $delAllowedAttributes, |
|
| 26 | parent::getAllowedAttributes() |
|
| 27 | ); |
|
| 28 | } |
|
| 29 | } |
|
| 30 | ||
| @@ 15-29 (lines=15) @@ | ||
| 12 | * |
|
| 13 | * https://html.spec.whatwg.org/multipage/semantics.html#the-ins-element |
|
| 14 | */ |
|
| 15 | class Ins extends OpenElement implements FlowContent, PhrasingContent, InlineElement |
|
| 16 | { |
|
| 17 | protected function getAllowedAttributes() |
|
| 18 | { |
|
| 19 | $insAllowedAttributes = array( |
|
| 20 | '/^cite$/i' => Element::ATTR_URI, |
|
| 21 | '/^datetime$/i' => Element::ATTR_CS_STRING |
|
| 22 | ); |
|
| 23 | ||
| 24 | return array_merge( |
|
| 25 | $insAllowedAttributes, |
|
| 26 | parent::getAllowedAttributes() |
|
| 27 | ); |
|
| 28 | } |
|
| 29 | } |
|
| 30 | ||
| @@ 15-29 (lines=15) @@ | ||
| 12 | * |
|
| 13 | * https://html.spec.whatwg.org/multipage/semantics.html#the-q-element |
|
| 14 | */ |
|
| 15 | class Q extends OpenElement implements FlowContent, PhrasingContent, InlineElement |
|
| 16 | { |
|
| 17 | protected function getAllowedAttributes() |
|
| 18 | { |
|
| 19 | $aAllowedAttributes = array( |
|
| 20 | '/^cite$/i' => Element::ATTR_CS_STRING |
|
| 21 | ); |
|
| 22 | ||
| 23 | return array_merge( |
|
| 24 | $aAllowedAttributes, |
|
| 25 | parent::getAllowedAttributes() |
|
| 26 | ); |
|
| 27 | } |
|
| 28 | ||
| 29 | } |
|
| 30 | ||