| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function sanitize() { |
||
| 28 | $this->dom->documentElement->setAttribute( AMP_Rule_Spec::DEV_MODE_ATTRIBUTE, '' ); |
||
| 29 | |||
| 30 | $xpath = new DOMXPath( $this->dom ); |
||
| 31 | foreach ( self::$asset_xpaths as $element_xpath ) { |
||
| 32 | foreach ( $xpath->query( $element_xpath ) as $node ) { |
||
| 33 | if ( $node instanceof DOMElement ) { |
||
| 34 | $node->setAttribute( AMP_Rule_Spec::DEV_MODE_ATTRIBUTE, '' ); |
||
| 35 | } |
||
| 36 | } |
||
| 37 | } |
||
| 38 | } |
||
| 39 | } |
||
| 40 |