Skip to content

Commit

Permalink
lazy way to handle div elements
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Jan 10, 2025
1 parent 3356cda commit 103539e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Version/Definition/Property.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ public function getName(): null|string

public function setName(string $name): self
{
// this is a very sloppy way to handle "xhtml:div".
$idx = strpos($name, ':');
if ($idx > 0) {
$name = substr($name, $idx + 1);
}
if ('' === $name) {
throw new \InvalidArgumentException(
sprintf(
Expand Down

0 comments on commit 103539e

Please sign in to comment.