@@ 16-29 (lines=14) @@ | ||
13 | * |
|
14 | * https://html.spec.whatwg.org/multipage/semantics.html#the-data-element |
|
15 | */ |
|
16 | class Data extends OpenElement implements FlowContent, PhrasingContent, InlineElement |
|
17 | { |
|
18 | protected function getAllowedAttributes() |
|
19 | { |
|
20 | $dataAllowedAttributes = array( |
|
21 | '/^value$/i' => Attribute::CS_STRING |
|
22 | ); |
|
23 | ||
24 | return array_merge( |
|
25 | $dataAllowedAttributes, |
|
26 | parent::getAllowedAttributes() |
|
27 | ); |
|
28 | } |
|
29 | } |
|
30 |
@@ 17-30 (lines=14) @@ | ||
14 | * |
|
15 | * https://html.spec.whatwg.org/multipage/semantics.html#the-q-element |
|
16 | */ |
|
17 | class Q extends OpenElement implements FlowContent, PhrasingContent, InlineElement |
|
18 | { |
|
19 | protected function getAllowedAttributes() |
|
20 | { |
|
21 | $aAllowedAttributes = array( |
|
22 | '/^cite$/i' => Attribute::CS_STRING |
|
23 | ); |
|
24 | ||
25 | return array_merge( |
|
26 | $aAllowedAttributes, |
|
27 | parent::getAllowedAttributes() |
|
28 | ); |
|
29 | } |
|
30 | } |
|
31 |
@@ 15-29 (lines=15) @@ | ||
12 | * |
|
13 | * https://html.spec.whatwg.org/multipage/forms.html#the-progress-element |
|
14 | */ |
|
15 | class Progress extends OpenElement implements FlowContent, PhrasingContent |
|
16 | { |
|
17 | protected function getAllowedAttributes() |
|
18 | { |
|
19 | $progressAllowedAttributes = array( |
|
20 | '/^value$/i' => Attribute::CS_STRING, |
|
21 | '/^max$/i' => Attribute::CS_STRING |
|
22 | ); |
|
23 | ||
24 | return array_merge( |
|
25 | $progressAllowedAttributes, |
|
26 | parent::getAllowedAttributes() |
|
27 | ); |
|
28 | } |
|
29 | } |
|
30 |
@@ 16-30 (lines=15) @@ | ||
13 | * |
|
14 | * https://html.spec.whatwg.org/multipage/semantics.html#the-canvas-element |
|
15 | */ |
|
16 | class Canvas extends OpenElement implements FlowContent, PhrasingContent, EmbeddedContent |
|
17 | { |
|
18 | protected function getAllowedAttributes() |
|
19 | { |
|
20 | $canvasAllowedAttributes = array( |
|
21 | '/^width$/i' => Attribute::INT, |
|
22 | '/^height$/i' => Attribute::INT |
|
23 | ); |
|
24 | ||
25 | return array_merge( |
|
26 | $canvasAllowedAttributes, |
|
27 | parent::getAllowedAttributes() |
|
28 | ); |
|
29 | } |
|
30 | } |
|
31 |