Hacker News new | ask | show | jobs
by testing12341234 4559 days ago
Since Apple provides the metadata tagging of the words via NSLinguisticTagger, then is this the web equivalent:

//dim non-anchor tags

$('*').not('a').addClass('dim');

//hightlight anchor tags

$('a').addClass('highlight');

If the browser provided the syntax metadata, then I don't see how this example with anchor tags is logically different. This appears to be obvious and trivial, where a patent requires non-obviousness and non-trivialness given the state of the art.

The linked demo at https://github.com/macguru/SyntaxCheck also seems to show the trivialness of this.