This looks like it could be a really great class, but perhaps it's not quite ready. I'm having to use "@" to supress a lot of error messages (You might want to turn on error reporting in your .ini file). On encountering input tags without the final slash, it does a good job of putting the slash in, but it stripped out quotation marks and '=' signs as follows:
<input class="field" type text name empresa size 50 maxlength 100 value=""/>
With the following code I got the following error message:
Marco Marchiņ - 2009-10-12 08:08:51 - In reply to message 1 from Mike Gamble
Hi Mike thank you for writing. First of all i want to say that this is my first class so i'm not an expert about testing but if you help me to find errors it will be great because i want to do a good job with this.
Can you write the url or the source code or a part of the source code which gives you the error on the input field? I've tried a lot of times but i can't get the same error.
The second one is not an error. When you search by selector a collection is returned not an element so you can't use the getInnerHTML() function beacuse it's an element method.
You can use $element->elements->getInnerHTML() to access the first element's inner HTML or you can use the each() function to iterate over every element in the collection.
Thank you again and please let me know the errors that you get so i can fix them.
Mike Gamble - 2009-10-12 13:14:28 - In reply to message 2 from Marco Marchiņ
Thanks for your reply, Marco.
With the new version, I'm not getting the same error messages. I'm not sure what you changed, but the messages were undefined offsets from your your $match variable in the Parser class (line 117). I'm still getting that type of message from the Collection class (lines 638 -640).
The URL of the site is www.zecainfo.com/fale.php. It's doing that to all of the input tags and the textarea tag.
Marco Marchiņ - 2009-10-12 18:47:45 - In reply to message 4 from Mike Gamble
I want to ask you one more thing, can you write a piece of code? I don't know why but i can't access the site that you gave me so i can't do any test. If you can write some lines of code with some of those input tags it will be great and you will help me very much, because i've done a lot of tests but i can't get the same error.
Anyway thanks for the support I appreciate it very much.