Skip to content

Commit

Permalink
Merge pull request #884 from Automattic/fix/script-additional-allowed…
Browse files Browse the repository at this point in the history
…-tag

Remove erroneous additional allowance of script[type=text/javascript]
  • Loading branch information
Thierry Muller authored Jan 22, 2018
2 parents 82c274b + 91ef386 commit a5629f9
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions includes/sanitizers/class-amp-rule-spec.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,18 @@ abstract class AMP_Rule_Spec {
*/
public static $additional_allowed_tags = array(

/**
* An experimental tag with no protoascii
*/
// An experimental tag with no protoascii.
'amp-share-tracking' => array(
'attr_spec_list' => array(),
'tag_spec' => array(),
),

/**
* Needed for some tags such as analytics
*/
// Needed for some tags such as analytics.
'script' => array(
'attr_spec_list' => array(
'type' => array(
'mandatory' => true,
'value_casei' => 'text/javascript',
'value_casei' => 'application/json',
),
),
'tag_spec' => array(),
Expand Down

0 comments on commit a5629f9

Please sign in to comment.