Last active
April 29, 2022 18:37
-
-
Save richardW8k/8370923 to your computer and use it in GitHub Desktop.
convert the next, previous and/or submit button <input> to <button> and uses the input value to create the button text inside a <span>, this means you can set the button text by editing the form or page break settings.
Using DOMDocument and everything. You sir, have done very well here. I don't have to adjust a single thing :)
Maybe one thing: why add the span granularity? Why not have input "value" attribute simply as button text node?
$new_button->appendChild( $dom->createTextNode( $input->getAttribute( "value" ) ) );
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
works like a charm after PHP 5.3.3 update to 5.4
thx a lot!