Xion/refrag.js — Issue #2: Refering to meaningful attributes (alt/title/value/placeholder/etc.)
Author: Xion
Created: 2011-12-15 17:40:13+00:00
State: open

Some tags - such as img, a or input - can have interesting content not in text child nodes, but in attributes. Therefore it would be wise to include them in searching if such tags are specified. For example, a link such as this one:

http://example.com/article/523#^img^Superluminal neutrino detector

should be searching for the phrase in both alt and title attributes of img tags.