From ddbca6806637db6fb56dd0b5af93bc2080d326c7 Mon Sep 17 00:00:00 2001 From: Subramanya Sastry Date: Thu, 16 Jan 2020 20:25:36 +0530 Subject: [PATCH] Rename DOM handling methods toDOM/fromDOM to reflect reality * For extensions, the fromHTML --> fromDOM renaming mirrors the toDOM extension method. Change-Id: Ic361bd0b5a8849c3033f55cfcae6e1cb36f68a10 --- src/Parsoid/Ref.php | 2 +- src/Parsoid/References.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Parsoid/Ref.php b/src/Parsoid/Ref.php index 026c6d349..1bd9c3431 100644 --- a/src/Parsoid/Ref.php +++ b/src/Parsoid/Ref.php @@ -80,7 +80,7 @@ class Ref extends ExtensionTag { } /** @inheritDoc */ - public function fromHTML( + public function fromDOM( DOMElement $node, SerializerState $state, bool $wrapperUnmodified ): string { $startTagSrc = $state->serializer->serializeExtensionStartTag( $node, $state ); diff --git a/src/Parsoid/References.php b/src/Parsoid/References.php index 079171025..b921f0bb6 100644 --- a/src/Parsoid/References.php +++ b/src/Parsoid/References.php @@ -561,7 +561,7 @@ class References extends ExtensionTag { } /** @inheritDoc */ - public function fromHTML( + public function fromDOM( DOMElement $node, SerializerState $state, bool $wrapperUnmodified ): string { $dataMw = DOMDataUtils::getDataMw( $node );