-
-
Notifications
You must be signed in to change notification settings - Fork 971
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Support for "content-language" http-equiv state
Implemented support for setting the pragma-set default language in the `<meta/>` tag with an `http-equiv` attribute `content-language`.
- Loading branch information
1 parent
413cf6b
commit 06154b8
Showing
13 changed files
with
172 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Language" content="ko" > | ||
<style type='text/css'> | ||
.test div { width: 50px; background-color: red; } | ||
#box:lang(ko) { width: 100px; background-color: limegreen; } | ||
</style> | ||
</head> | ||
<body> | ||
<div class="test"><div id="box">TEST</div></div> | ||
</body> | ||
</html> | ||
<script src="../include.js"></script> | ||
<script> | ||
asyncTest((done) => { | ||
if (document.getElementById('box').offsetWidth == 100) { | ||
println("OK"); | ||
} else { | ||
println("FAIL. If there is a pragma-set default language set, then that is the language of the node."); | ||
} | ||
done(); | ||
}); | ||
</script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Language" content=" | ||
ko | ||
som! ?et #$% hi;0 ng " > | ||
<style type='text/css'> | ||
.test div { width: 50px; background-color: red; } | ||
#box:lang(ko) { width: 100px; background-color: limegreen; } | ||
</style> | ||
</head> | ||
<body> | ||
<div class="test"><div id="box">TEST</div></div> | ||
</body> | ||
</html> | ||
<script src="../include.js"></script> | ||
<script> | ||
asyncTest((done) => { | ||
if (document.getElementById('box').offsetWidth == 100) { | ||
println("OK"); | ||
} else { | ||
println("FAIL. If there is a pragma-set default language set, then that is the language of the node. It should match the first non-whitespace code points from the contet attribute."); | ||
} | ||
done(); | ||
}); | ||
</script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Language" content="ko,pl" > | ||
<style type='text/css'> | ||
.test div { width: 50px; background-color: limegreen; } | ||
#box:lang(ko) { width: 100px; background-color: red; } | ||
</style> | ||
</head> | ||
<body> | ||
<div class="test"><div id="box">TEST</div></div> | ||
</body> | ||
</html> | ||
<script src="../include.js"></script> | ||
<script> | ||
asyncTest((done) => { | ||
if (document.getElementById('box').offsetWidth == 50) { | ||
println("OK"); | ||
} else { | ||
println("FAIL. If the element's content attribute contains a U+002C COMMA character (,) then return."); | ||
} | ||
done(); | ||
}); | ||
</script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Language" content="" > | ||
<style type='text/css'> | ||
.test div { width: 50px; background-color: limegreen; } | ||
#box:lang(ko) { width: 100px; background-color: red; } | ||
</style> | ||
</head> | ||
<body> | ||
<div class="test"><div id="box">TEST</div></div> | ||
</body> | ||
</html> | ||
<script src="../include.js"></script> | ||
<script> | ||
asyncTest((done) => { | ||
if (document.getElementById('box').offsetWidth == 50) { | ||
println("OK"); | ||
} else { | ||
println("FAIL. If candidate is the empty string, return."); | ||
} | ||
done(); | ||
}); | ||
</script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Language" > | ||
<style type='text/css'> | ||
.test div { width: 50px; background-color: limegreen; } | ||
#box:lang(ko) { width: 100px; background-color: red; } | ||
</style> | ||
</head> | ||
<body> | ||
<div class="test"><div id="box">TEST</div></div> | ||
</body> | ||
</html> | ||
<script src="../include.js"></script> | ||
<script> | ||
asyncTest((done) => { | ||
if (document.getElementById('box').offsetWidth == 50) { | ||
println("OK"); | ||
} else { | ||
println("FAIL. If the meta element has no content attribute, then return."); | ||
} | ||
done(); | ||
}); | ||
</script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters