[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

rel attribute of anchor tag



HTML4 の規格を調べてみると,

<!ELEMENT A - - (%inline;)* -(A)       -- anchor -->
<!ATTLIST A
  %attrs;                              -- %coreattrs, %i18n, %events --
  (snip)
  rel         %LinkTypes;    #IMPLIED  -- forward link types --
  (snip)
  >

と,アンカーに対して rel 属性を指定できます.これは,一般的には <link> 
タグで指定される文書間の関係性を表現する属性です.

この属性を emacs-w3m で利用したい(= halfdump 時に出力してほしい)ので,
以下のように変更して頂けないでしょうか.

よろしく検討をお願いします.

-- 
土屋 雅稔 ( TSUCHIYA Masatoshi )

Index: html.c
===================================================================
RCS file: /cvsroot/w3m/w3m/html.c,v
retrieving revision 1.24
diff -u -u -r1.24 html.c
--- html.c	18 Jun 2003 16:18:43 -0000	1.24
+++ html.c	11 Aug 2003 10:37:40 -0000
@@ -6,10 +6,10 @@
 #define ATTR_CORE	ATTR_ID
 #define MAXA_CORE	1
 unsigned char ALST_A[] = {
-    ATTR_NAME, ATTR_HREF, ATTR_CHARSET, ATTR_TARGET, ATTR_HSEQ, ATTR_REFERER,
+    ATTR_NAME, ATTR_HREF, ATTR_REL, ATTR_CHARSET, ATTR_TARGET, ATTR_HSEQ, ATTR_REFERER,
     ATTR_FRAMENAME, ATTR_TITLE, ATTR_ACCESSKEY, ATTR_CORE
 };
-#define MAXA_A		MAXA_CORE + 9
+#define MAXA_A		MAXA_CORE + 10
 unsigned char ALST_P[] = { ATTR_ALIGN, ATTR_CORE };
 #define MAXA_P		MAXA_CORE + 1
 unsigned char ALST_UL[] = { ATTR_START, ATTR_TYPE, ATTR_CORE };