Fandom

Accessify Wiki

Fix:Baidu search

59pages on
this wiki
Add New Page
Comments0 Share

Accessibility fixes including WAI-ARIA roles for Baidu.com Chinese search.

_CONFIG_:
    name: Baidu search
    # description is optional.
    # include: Required. Glob.
    include:
        - http://*.baidu.com/*
        - http://baidu.com/*
    test_urls:
        - http://www.baidu.com/s?wd=%E6%B8%85%E6%98%8E%E8%8A%82
    default_locale: en-GB
    authors:
        - Nick @nfreear
    created: 2013-04-03T20:54+01:00
 
 
# Syntax example.
"#My ID selector":
    HTML attribute: value
 
 
# www.Baidu.com home page.
"#nv":
    role: navigation
    aria-label: Other Baidu services
    aria-label.zh-CN: 其它百度服务
 
"form#f":
    role: search
 
"#ftCon":
    role: contentinfo
 
"#lg img":
    # Hmm, not always a link :(.
    title: Baidu Doodle..
    title.zh-CN: 百度Doodle..
    role: link
    tabindex: 0

"[name=wd]":
    #type: search
    title: Type a search term
    title.zh-CN: 输入搜索内容
    placeholder: Type a search term
    placeholder.zh-CN: 输入搜索内容
    style: cursor:help
 
# Search results page - http://www.Baidu.com/s?wd=清明节 .
"#s_tab":
    role: navigation
    aria-label: On other Baidu services
    _note: Search results page
 
"#content_right":
    role: complementary
    # Eg. Baidu Encyclopedia entry.
 
"#content_left":
    role: main
 
"#page":
    role: navigation
    aria-label: Pages of search results
 
"#rs":
    role: navigation
    aria-label: Related searches
    aria-label.zh-CN: 相关搜索
 
"#foot":
    role: contentinfo
 
# Caution, a visible change!
body:
    style: "background-color:#f8f8f8;color:#222;"
    _note: Caution, a visible change! (Reduce glare for those w. Dyslexia)
 
#html:
#    style: border:1px solid green
 
 
# End.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.