[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: some Google links not linked?
- From: Katsumi Yamaoka <yamaoka@xxxxxxx>
- Date: Mon, 20 Dec 2010 10:31:57 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 11452
- References: <b4mfwtxnhid.fsf@xxxxxxx> <20101217.184049.164321981.hito@xxxxxxxxxx> <b4my67oezig.fsf@xxxxxxx> <20101218.141104.291465508.hito@xxxxxxxxxx>
(BI've added a filter to the emacs-w3m trunk so as to work around
(Bnews.google.com.tw. The filter is as follows, runs on raw html
(Bcontents that are passed to `w3m -halfdump':
(B| w3m-fix-illegal-blocks is a compiled Lisp function in `w3m.el'.
(B| Replace <div>...</div> within <a>...</a> with <span>...<br></span>.
(B| <div> is a block element that should not appear within inline elements
(B| like <a>, however some web sites, e.g., news.google.com.tw, do so and
(B| w3m regards it as an incomplete <a> tag that is not closed.
(BN-san and Ito-san wrote that what's bad is news.google.com.tw
(B(see above) and don't want to make w3m work around. I agree and
(Bvalue their policy. But, although a block element appearing within
(Ban inline element is illegal, it doesn't mean to prohibit a browser
(Bfrom doing something with it, I believe. ;-) So, I wish emacs-w3m
(Bdevelopers agree with having made it follow a way that Firefox, IE,
(BIn [w3m-dev : No.04431] $B0KEl$5$s(B wrote:
(B>>> <div> $B$G(B <a> $B$,JD$8$i$l$F$7$^$&$?$a$G$9$M!#(B
(B>> $B$=$&$$$&$3$H$J$N$G$9$+!#AG?M$H$7$F$O(B <foo> $B$rJD$8$k$N$O(B </foo>
(B> $B$3$l$K$D$$$F$O!"!Z$($L![$5$s$N8f;XE&$N$H$*$j$G$9!#(B<div> $B$,8=$l$?;~E@$G(B
(B> <a> $B$NJD$8K:$l$HH=CG$7$F$7$^$$$^$9!#(B
$B$($L$5$s!"0KEl$5$s!"$4@bL@$"$j$,$H$&$4$6$$$^$9!#(Bw3m $B$,(B html $B=hM}(B