<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>19887</bug_id>
          
          <creation_ts>2012-11-07 07:57:11 +0000</creation_ts>
          <short_desc>add a &quot;script&quot; or &quot;writing-system&quot; attribute, in addition to &quot;lang&quot;</short_desc>
          <delta_ts>2015-06-26 05:38:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Amir E. Aharoni">amir.aharoni</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>robin</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>77989</commentid>
    <comment_count>0</comment_count>
    <who name="Amir E. Aharoni">amir.aharoni</who>
    <bug_when>2012-11-07 07:57:11 +0000</bug_when>
    <thetext>In HTML it&apos;s possible to define lang and dir for every element. It would also be useful to define the writing system of an element.

The default value for this attribute can be obtained from BCP 47 or CLDR.

Here are several possible use cases:

1. Fine-grained definition of the writing system element in languages that can be written in several languages. Serbian, for example, can be written in Latin and in Cyrillic. It&apos;s possible to use lang=&quot;sr-latn&quot; and lang=&quot;sr-cyrl&quot;, but this is not robust enough, because the langauge codes can have other qualifiers after the dash, such as locale (country), dialect, variant, etc.

2. Using CSS pseudo-selectors to apply a styling rule to all elements in different languages, but the same writing system. For example, a site may have content in English, Arabic, Persian, Urdu and other languages in the Arabic script, and its designer may want to apply a default font to all the content in the Arabic-script languages. It can be done using :lang(ar), :lang(fa), :lang(ur) etc., but this doesn&apos;t scale, because there dozens of other languages written in the Arabic script. So, I envision something like :script(arab) to cover all of them. This can be used for applying fonts, line-height, and any other styling.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77991</commentid>
    <comment_count>1</comment_count>
    <who name="Amir E. Aharoni">amir.aharoni</who>
    <bug_when>2012-11-07 12:52:50 +0000</bug_when>
    <thetext>... In case it wasn&apos;t clear, the value should be an ISO 15924 code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81702</commentid>
    <comment_count>2</comment_count>
    <who name="Robin Berjon">robin</who>
    <bug_when>2013-01-21 15:58:56 +0000</bug_when>
    <thetext>Mass move to &quot;HTML WG&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81820</commentid>
    <comment_count>3</comment_count>
    <who name="Robin Berjon">robin</who>
    <bug_when>2013-01-21 16:01:43 +0000</bug_when>
    <thetext>Mass move to &quot;HTML WG&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121091</commentid>
    <comment_count>4</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2015-06-16 12:07:30 +0000</bug_when>
    <thetext>Can already be handled by CSS variables and BCP47. No implementer interest in doing anything more for this, nor any indications of much webdev interest.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>