Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 365d26e

Browse files
committed
Add a <cxx-term> element to represent technical terms.
For now, this does nothing other than italicize the term, but we can make it link to the definition in the future.
1 parent 823924c commit 365d26e

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

framework.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@
3434
<link rel="import" href="note.html"/>
3535
<link rel="import" href="footnote.html"/>
3636
<link rel="import" href="example.html"/>
37+
<link rel="import" href="term.html"/>
3738
<link rel="import" href="publish.html"/>
3839
<link rel="import" href="range.html"/>

term.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!-- Copyright 2014 Google Inc. All rights reserved.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.
14+
-->
15+
16+
<!-- This element represents a technical term defined somewhere else in the
17+
standard or TS. -->
18+
19+
<polymer-element name="cxx-term" noscript>
20+
<!-- From whatwg: "The i element represents a span of text in an alternate
21+
voice or mood, ... such as ... a technical term ..." -->
22+
<template><i><content></content></i></template>
23+
</polymer-element>

0 commit comments

Comments
 (0)