[Htmlparser-developer] AI - to be or not to be
Brought to you by:
derrickoswald
From: Somik R. <so...@ya...> - 2002-12-30 05:19:57
|
Hi Folks, Derrick Oswald just checked in a test case that fails.. Here's a link tag : <a href="http://cbc.ca/artsCanada/stories/greatnorth271202" class="lgblacku">Vancouver schools plan 'Great Northern Way'</a> We are in a quandary now. When we have cases like : <a href="something.html">Kaarle's Page</a> we should accept the apostrophe without doing anything special. When we get links like, <script> var code = '<sometag>'; </script> We should not take the tag symbols after code seriously, as they are part of the string. Handling the last two cases causes a conflict with the first case -bcos the last case is handled by checking if there's a < after ' - and this causes the first case to go into an ignoring mode. How do we handle this problem ? Do we write smart code to handle this particular situation ? From human experience, even if we've not encountered these cases, we know how to differentiate between a string node and a tag. Can AI help us here ? Also, pls feel free to suggest any straightforward solutions as well. Regards Somik |