Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createFromHtml does not work with html fragments #11

Closed
DracoBlue opened this issue Aug 7, 2012 · 0 comments
Closed

createFromHtml does not work with html fragments #11

DracoBlue opened this issue Aug 7, 2012 · 0 comments

Comments

@DracoBlue
Copy link
Owner

Current behaviour:

<?php
$craur = Craur::createFromHtml('<a href="http://dracoblue.net">dracoblue</a>');
assert($craur->get('html.body.a') == 'dracoblue');
assert($craur->get('html.body.a.@href') == 'http://dracoblue.net');

Expected behaviour:

<?php
$craur = Craur::createFromHtml('<a href="http://dracoblue.net">dracoblue</a>');
assert($craur->get('a') == 'dracoblue');
assert($craur->get('a.@href') == 'http://dracoblue.net');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant