diff --git a/includes/utils/class-amp-dom-utils.php b/includes/utils/class-amp-dom-utils.php index bf217f7a3a4..cea51615da8 100644 --- a/includes/utils/class-amp-dom-utils.php +++ b/includes/utils/class-amp-dom-utils.php @@ -56,6 +56,7 @@ public static function get_dom( $document ) { $dom = new DOMDocument(); + // @todo In the future consider an AMP_DOMDocument subclass that does this automatically. See . $document = self::convert_amp_bind_attributes( $document ); /* @@ -100,7 +101,7 @@ public static function get_amp_bind_placeholder_prefix() { /** * Replace AMP binding attributes with something that libxml can parse (as HTML5 data-* attributes). * - * This is necessary necessary because attributes in square brackets are not understood in PHP and + * This is necessary because attributes in square brackets are not understood in PHP and * get dropped with an error raised: * > Warning: DOMDocument::loadHTML(): error parsing attribute name * This is a reciprocal function of AMP_DOM_Utils::restore_amp_bind_attributes(). @@ -252,6 +253,7 @@ public static function get_content_from_dom( $dom ) { * @see Called by function get_content_from_dom() * * @since 0.6 + * @todo In the future consider an AMP_DOMDocument subclass that does this automatically at saveHTML(). See . * * @param DOMDocument $dom Represents an HTML document. * @param DOMNode $node Represents an HTML element of the $dom from which to extract HTML content.