mirror of
https://github.com/golang/go
synced 2024-10-05 02:21:22 -06:00
57 lines
1.2 KiB
Go
57 lines
1.2 KiB
Go
|
// Copyright 2011 The Go Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style
|
||
|
// license that can be found in the LICENSE file.
|
||
|
|
||
|
package html
|
||
|
|
||
|
// Section 12.2.5.5.
|
||
|
var breakout = map[string]bool{
|
||
|
"b": true,
|
||
|
"big": true,
|
||
|
"blockquote": true,
|
||
|
"body": true,
|
||
|
"br": true,
|
||
|
"center": true,
|
||
|
"code": true,
|
||
|
"dd": true,
|
||
|
"div": true,
|
||
|
"dl": true,
|
||
|
"dt": true,
|
||
|
"em": true,
|
||
|
"embed": true,
|
||
|
"font": true,
|
||
|
"h1": true,
|
||
|
"h2": true,
|
||
|
"h3": true,
|
||
|
"h4": true,
|
||
|
"h5": true,
|
||
|
"h6": true,
|
||
|
"head": true,
|
||
|
"hr": true,
|
||
|
"i": true,
|
||
|
"img": true,
|
||
|
"li": true,
|
||
|
"listing": true,
|
||
|
"menu": true,
|
||
|
"meta": true,
|
||
|
"nobr": true,
|
||
|
"ol": true,
|
||
|
"p": true,
|
||
|
"pre": true,
|
||
|
"ruby": true,
|
||
|
"s": true,
|
||
|
"small": true,
|
||
|
"span": true,
|
||
|
"strong": true,
|
||
|
"strike": true,
|
||
|
"sub": true,
|
||
|
"sup": true,
|
||
|
"table": true,
|
||
|
"tt": true,
|
||
|
"u": true,
|
||
|
"ul": true,
|
||
|
"var": true,
|
||
|
}
|
||
|
|
||
|
// TODO: add look-up tables for MathML and SVG adjustments.
|