[uf-dev] parsing question

Brian Suda brian.suda at gmail.com
Thu Jan 11 01:13:23 PST 2007


On 1/10/07, Ryan King <ryan at technorati.com> wrote:
> How should I handle the following in hCard:

--- i think the valuw would be '//'

The class="email" on the DIV is not an 'a' or 'abbr' (it is a div) so
paring rules say use the node value.

In this case the node value is a script node, which contains only ' //'

As a parser, you should NOT look inside comments <!-- --> or <![CDATA

That's my take? any other thoughts.

-brian

> <div class="email"><script type="text/javascript"> //<![CDATA
> [ function wish_enkoder(){var i,j,x,y,x= "x=\"{@%
> 25:;6g55:f74596d6;6d9d6d6:6e6<6d9;6d6<6d9<6e6;699<6e6e6e696d6g6e6;6"
> +
> "d6<696f69696:9:6d6869676d6f6e696d6<6d6d6:9;6<9:69696d9;6d686d6g6d9:6e6;
> 6d9" +
> "d6:986d6;6e696d6<6d686d9;6;676e6e6d6g6e6:6d6f6d6g6d9<6d6e6d9:6d6g6d9<6d
> 6<6" +
> "99<6d6:6d9d6d9;6:9d6e6:6e6<6d696d986d6<6d6:6e6;6:9;6;9<6d6<6e6e69676;69
> 6e6" +
> "<6e6:6d6g6d9<6d6<6e6:6e6:69676<696d6<6e686e6<6d6<6e6:6e6;6<9:696969676e
> 6;6" +
> "d6g6e6;6d9:6d6<6:9;6<9:69696<6:6d6<6d9<6d6;69676e6<6e6:69676d686d9<6967
> 6d6" +
> "<699;6d9;6d686d6g6d9:6<9:69696:9<6d6;6e696d6<6d686d9;6;676e6e6d6g6e6:6d
> 6f6" +
> "d6g6d9<6d6e6d9:6d6g6d9<6d6<699<6d6:6d9d6d9;6:9:699d6d686:9<6969696g6:99
> 6:6" + "76:99596i:g745e5e6i9d:6:95f9g74676i9g73:f65:39<:59e:;
> 9f6i9g5i74695g54:g5i7" + "4:<:59<::
> 9:98:79<5f5e5<5e5i:f65:::<99:::;:95f9g63695g5g6i56:g556e:<6g5:5:6" +
> "e:;6g:89h98:69694:3985;:;5<6e999i:55;9<6g636e9<6f:;
> 5h9f989h9::79;6e9<5e5e5" + "<:e9d6g:;
> 5h969;94:5769i979874:75;9<5<5g676e9<995;9d6f66655<9d5e6g6<676e:<5" +
> "e6g86:7:59<9h9:5h99:59i9g769;94:5769i97985;9d5<:g:<%25>|@**>iru
> +l at 3>l?{1oh" + "qjwk>l. at 5,~|. at xqhvfdsh+*(*.{1vxevwu+l/5,,>%22|
> \";y='';x=unescape(x);for(i=" + "0;i<x.length;i++){j=x.charCodeAt
> (i)-3;if(j<32)j+=94;y+=String.fromCharCode" + "(j)}y"; while(x=eval
> (x));} wish_enkoder(); //]]> </script> </div>
>
>
> :D
>
> -ryan
> --
> Ryan King
> ryan at technorati.com
>
>
>
> _______________________________________________
> microformats-dev mailing list
> microformats-dev at microformats.org
> http://microformats.org/mailman/listinfo/microformats-dev
>


-- 
brian suda
http://suda.co.uk


More information about the microformats-dev mailing list