garretus / phpquery

Automatically exported from code.google.com/p/phpquery
0 stars 0 forks source link

attr() does not work in a plugin method when applied to non 'div' elements #168

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a new plugin
2. Create a method that tries to access an attribute (e.g. id, or content) of 
the 'body' or a 'meta' element

What is the expected output? What do you see instead?
I expect the method to return the requested attribute, instead it returns the 
outerHtml of the element

What version of the product are you using? On what operating system?
version 0.9.5 on Ubuntu Linux with Apache and PHP 5.3

Please provide any additional information below.

Original issue reported on code.google.com by qwa...@gmail.com on 14 Jan 2011 at 5:15