fixed problem that link:css does not become 'link' in php. however it should not be removed in xsl/xml.

This commit is contained in:
mattn
2010-03-16 18:37:43 +09:00
parent 06130914c6
commit 5fb57a28d3
2 changed files with 10 additions and 7 deletions

View File

@@ -266,6 +266,12 @@ finish
'type': "html",
'result': "<div>\n\t<!-- #page -->\n\t<div id=\"page\">\n\t\t<!-- .title -->\n\t\t<p class=\"title\"></p>\n\t\t<!-- /.title -->\n\t\t<p></p>\n\t</div>\n\t<!-- /#page -->\n</div>\n",
},
{
'name': "link:css",
'query': "link:css",
'type': "html",
'result': "<link media=\"all\" rel=\"stylesheet\" href=\"style.css\" type=\"text/css\" />\n",
},
],
},
{
@@ -277,12 +283,6 @@ finish
'type': "css",
'result': "@import url();",
},
{
'name': "link:css",
'query': "link:css",
'type': "html",
'result': "<link media=\"all\" rel=\"stylesheet\" href=\"style.css\" type=\"text/css\" />\n",
},
{
'name': "fs:n",
'query': "fs:n",

View File

@@ -864,6 +864,9 @@ function! s:zen_use_filter(filters, filter)
endfunction
function! s:zen_is_extends(type, extend)
if a:type == a:extend
return 1
endif
if !has_key(s:zen_settings, a:type)
return 0
endif
@@ -962,7 +965,7 @@ function! s:zen_parseIntoTree(abbr, type)
endfor
endfor
endif
if s:zen_is_extends(type, 'html')
if has_key(s:zen_settings.html.default_attributes, current.name)
let current.name = substitute(current.name, ':.*$', '', '')
endif
break