@@ -28,14 +28,14 @@ discard block |
||
| 28 | 28 | */ |
| 29 | 29 | public function __construct( Htsl$htsl, string$content, string$filePath='' ) |
| 30 | 30 | { |
| 31 | - if( false!==strpos($content,"\r") ){ |
|
| 31 | + if( false!==strpos($content, "\r") ){ |
|
| 32 | 32 | throw new \Exception("Line ending must be LF.", 1); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - $this->filePath= $filePath; |
|
| 35 | + $this->filePath=$filePath; |
|
| 36 | 36 | |
| 37 | - $this->lines= array_filter(explode("\n",$content),'strlen'); |
|
| 38 | - array_unshift($this->lines,null); |
|
| 37 | + $this->lines=array_filter(explode("\n", $content), 'strlen'); |
|
| 38 | + array_unshift($this->lines, null); |
|
| 39 | 39 | |
| 40 | 40 | parent::__construct($htsl); |
| 41 | 41 | } |
@@ -63,9 +63,9 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public function goSide( $fileName ):parent |
| 65 | 65 | { |
| 66 | - $filePath= $this->htsl->getFilePath($fileName,dirname($this->filePath)); |
|
| 67 | - $content= $this->htsl->getFileContent($filePath); |
|
| 66 | + $filePath=$this->htsl->getFilePath($fileName, dirname($this->filePath)); |
|
| 67 | + $content=$this->htsl->getFileContent($filePath); |
|
| 68 | 68 | |
| 69 | - return new static($this->htsl,$content,$filePath); |
|
| 69 | + return new static($this->htsl, $content, $filePath); |
|
| 70 | 70 | } |
| 71 | 71 | } |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | */ |
| 24 | 24 | function studly_case( string$input ):string |
| 25 | 25 | { |
| 26 | - return str_replace(' ','',ucwords(str_replace(['-', '_'], ' ', $input))); |
|
| 26 | + return str_replace(' ', '', ucwords(str_replace([ '-', '_' ], ' ', $input))); |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | /** |
@@ -35,5 +35,5 @@ discard block |
||
| 35 | 35 | */ |
| 36 | 36 | function snake_case( string$input ):string |
| 37 | 37 | { |
| 38 | - return strtolower(preg_replace('/(?<=[^A-Z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][^A-Z])/','_',$input)); |
|
| 38 | + return strtolower(preg_replace('/(?<=[^A-Z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][^A-Z])/', '_', $input)); |
|
| 39 | 39 | } |
@@ -12,6 +12,7 @@ |
||
| 12 | 12 | * @access public |
| 13 | 13 | * |
| 14 | 14 | * @param string ...$key |
| 15 | + * @param string[] $key |
|
| 15 | 16 | * |
| 16 | 17 | * @return mixed |
| 17 | 18 | */ |
@@ -198,70 +198,70 @@ discard block |
||
| 198 | 198 | ], |
| 199 | 199 | ], |
| 200 | 200 | 'tag_nodes'=> [ |
| 201 | - 'SVG1.1'=> $svgTags= [ |
|
| 201 | + 'SVG1.1'=> $svgTags=[ |
|
| 202 | 202 | 'svg'=> [ |
| 203 | 203 | 'out'=> [ |
| 204 | - 'default_attributes'=> ['xmlns'=> 'http://www.w3.org/2000/svg','version'=> '1.1',], |
|
| 205 | - 'params'=> ['viewBox',], |
|
| 204 | + 'default_attributes'=> [ 'xmlns'=> 'http://www.w3.org/2000/svg', 'version'=> '1.1', ], |
|
| 205 | + 'params'=> [ 'viewBox', ], |
|
| 206 | 206 | 'scope'=> 'svg', |
| 207 | 207 | ], |
| 208 | 208 | 'in'=> [ |
| 209 | 209 | 'svg'=> [ |
| 210 | - 'params'=> ['x','y','width','height',], |
|
| 210 | + 'params'=> [ 'x', 'y', 'width', 'height', ], |
|
| 211 | 211 | ], |
| 212 | 212 | ], |
| 213 | 213 | ], |
| 214 | - '*'=> [], |
|
| 214 | + '*'=> [ ], |
|
| 215 | 215 | 'polygon'=> [ |
| 216 | - 'params'=> ['points',], |
|
| 217 | - 'only_in'=> ['svg',], |
|
| 216 | + 'params'=> [ 'points', ], |
|
| 217 | + 'only_in'=> [ 'svg', ], |
|
| 218 | 218 | ], |
| 219 | 219 | 'polyline'=> [ |
| 220 | - 'params'=> ['points',], |
|
| 221 | - 'only_in'=> ['svg',], |
|
| 220 | + 'params'=> [ 'points', ], |
|
| 221 | + 'only_in'=> [ 'svg', ], |
|
| 222 | 222 | ], |
| 223 | 223 | 'path'=> [ |
| 224 | - 'params'=> ['d',], |
|
| 225 | - 'only_in'=> ['svg',], |
|
| 224 | + 'params'=> [ 'd', ], |
|
| 225 | + 'only_in'=> [ 'svg', ], |
|
| 226 | 226 | ], |
| 227 | 227 | 'line'=> [ |
| 228 | - 'params'=> ['x1','y1','x2','y2',], |
|
| 229 | - 'only_in'=> ['svg',], |
|
| 228 | + 'params'=> [ 'x1', 'y1', 'x2', 'y2', ], |
|
| 229 | + 'only_in'=> [ 'svg', ], |
|
| 230 | 230 | ], |
| 231 | 231 | 'rect'=> [ |
| 232 | - 'params'=> ['x','y','width','height',], |
|
| 233 | - 'only_in'=> ['svg',], |
|
| 232 | + 'params'=> [ 'x', 'y', 'width', 'height', ], |
|
| 233 | + 'only_in'=> [ 'svg', ], |
|
| 234 | 234 | ], |
| 235 | 235 | 'circle'=> [ |
| 236 | - 'params'=> ['cx','cy','r',], |
|
| 237 | - 'only_in'=> ['svg',], |
|
| 236 | + 'params'=> [ 'cx', 'cy', 'r', ], |
|
| 237 | + 'only_in'=> [ 'svg', ], |
|
| 238 | 238 | ], |
| 239 | 239 | 'ellipse'=> [ |
| 240 | - 'params'=> ['cx','cy','rx','ry',], |
|
| 241 | - 'only_in'=> ['svg',], |
|
| 240 | + 'params'=> [ 'cx', 'cy', 'rx', 'ry', ], |
|
| 241 | + 'only_in'=> [ 'svg', ], |
|
| 242 | 242 | ], |
| 243 | 243 | 'text'=> [ |
| 244 | - 'params'=> ['x','y',], |
|
| 245 | - 'only_in'=> ['svg',], |
|
| 244 | + 'params'=> [ 'x', 'y', ], |
|
| 245 | + 'only_in'=> [ 'svg', ], |
|
| 246 | 246 | ], |
| 247 | 247 | ], |
| 248 | 248 | 'HTML5'=> [ |
| 249 | - '*'=> [], |
|
| 249 | + '*'=> [ ], |
|
| 250 | 250 | ''=> [ |
| 251 | 251 | 'opener'=> ' ', |
| 252 | 252 | 'closer'=> '', |
| 253 | 253 | ], |
| 254 | 254 | 'charset'=> [ |
| 255 | 255 | 'name'=> 'meta', |
| 256 | - 'params'=> ['charset',], |
|
| 256 | + 'params'=> [ 'charset', ], |
|
| 257 | 257 | ], |
| 258 | 258 | 'equiv'=> [ |
| 259 | 259 | 'name'=> 'meta', |
| 260 | - 'name_value'=> ['http-equiv','content','scheme',], |
|
| 260 | + 'name_value'=> [ 'http-equiv', 'content', 'scheme', ], |
|
| 261 | 261 | ], |
| 262 | 262 | 'meta'=> [ |
| 263 | 263 | 'name'=> 'meta', |
| 264 | - 'name_value'=> ['name','content','scheme',], |
|
| 264 | + 'name_value'=> [ 'name', 'content', 'scheme', ], |
|
| 265 | 265 | ], |
| 266 | 266 | 'php'=> [ |
| 267 | 267 | 'opener'=> '<?php ', |
@@ -273,14 +273,14 @@ discard block |
||
| 273 | 273 | 'multiple'=> [ |
| 274 | 274 | [ |
| 275 | 275 | 'pattern'=> '/\{>$/', |
| 276 | - 'params'=> ['type',], |
|
| 277 | - 'default_attributes'=> ['codeset'=> 'codeset',], |
|
| 276 | + 'params'=> [ 'type', ], |
|
| 277 | + 'default_attributes'=> [ 'codeset'=> 'codeset', ], |
|
| 278 | 278 | 'embedding'=> 'code', |
| 279 | 279 | ], |
| 280 | 280 | [ |
| 281 | 281 | 'pattern'=> '/.?/', |
| 282 | 282 | 'name'=> 'code', |
| 283 | - 'params'=> ['type',], |
|
| 283 | + 'params'=> [ 'type', ], |
|
| 284 | 284 | ], |
| 285 | 285 | ], |
| 286 | 286 | ], |
@@ -289,13 +289,13 @@ discard block |
||
| 289 | 289 | [ |
| 290 | 290 | 'pattern'=> '/^-js @/', |
| 291 | 291 | 'name'=> 'script', |
| 292 | - 'default_attributes'=> ['type'=> 'text/javascript',], |
|
| 292 | + 'default_attributes'=> [ 'type'=> 'text/javascript', ], |
|
| 293 | 293 | 'link'=> 'src', |
| 294 | 294 | ], |
| 295 | 295 | [ |
| 296 | 296 | 'pattern'=> '/^-js\{>/', |
| 297 | 297 | 'name'=> 'script', |
| 298 | - 'default_attributes'=> ['type'=> 'text/javascript',], |
|
| 298 | + 'default_attributes'=> [ 'type'=> 'text/javascript', ], |
|
| 299 | 299 | 'embedding'=> 'js', |
| 300 | 300 | ], |
| 301 | 301 | ], |
@@ -305,96 +305,96 @@ discard block |
||
| 305 | 305 | [ |
| 306 | 306 | 'pattern'=> '/^-css @/', |
| 307 | 307 | 'name'=> 'link', |
| 308 | - 'default_attributes'=> ['rel'=> 'stylesheet','type'=> 'text/css',], |
|
| 308 | + 'default_attributes'=> [ 'rel'=> 'stylesheet', 'type'=> 'text/css', ], |
|
| 309 | 309 | 'link'=> 'href', |
| 310 | 310 | ], |
| 311 | 311 | [ |
| 312 | 312 | 'pattern'=> '/^-css\{>/', |
| 313 | 313 | 'name'=> 'style', |
| 314 | - 'default_attributes'=> ['type'=> 'text/css',], |
|
| 314 | + 'default_attributes'=> [ 'type'=> 'text/css', ], |
|
| 315 | 315 | 'embedding'=> 'css', |
| 316 | 316 | ], |
| 317 | 317 | ], |
| 318 | 318 | ], |
| 319 | 319 | 'icon'=> [ |
| 320 | 320 | 'name'=> 'link', |
| 321 | - 'default_attributes'=> ['rel'=> 'icon',], |
|
| 322 | - 'params'=> ['sizes',], |
|
| 321 | + 'default_attributes'=> [ 'rel'=> 'icon', ], |
|
| 322 | + 'params'=> [ 'sizes', ], |
|
| 323 | 323 | 'link'=> 'href', |
| 324 | 324 | ], |
| 325 | 325 | 'shortcut'=> [ |
| 326 | 326 | 'name'=> 'link', |
| 327 | - 'default_attributes'=> ['rel'=> 'shortcut icon','type'=> 'image/x-icon',], |
|
| 327 | + 'default_attributes'=> [ 'rel'=> 'shortcut icon', 'type'=> 'image/x-icon', ], |
|
| 328 | 328 | 'link'=> 'href', |
| 329 | 329 | ], |
| 330 | 330 | 'link'=> [ |
| 331 | - 'params'=> ['rel',], |
|
| 331 | + 'params'=> [ 'rel', ], |
|
| 332 | 332 | 'link'=> 'href', |
| 333 | 333 | ], |
| 334 | 334 | 'script'=> [ |
| 335 | - 'params'=> ['type',], |
|
| 335 | + 'params'=> [ 'type', ], |
|
| 336 | 336 | 'link'=> 'source', |
| 337 | 337 | ], |
| 338 | 338 | 'a'=> [ |
| 339 | 339 | 'link'=> 'href', |
| 340 | - 'name_value'=> ['name',], |
|
| 340 | + 'name_value'=> [ 'name', ], |
|
| 341 | 341 | 'target'=> 'target', |
| 342 | 342 | ], |
| 343 | 343 | 'iframe'=> [ |
| 344 | 344 | 'link'=> 'src', |
| 345 | - 'default_attributes'=> ['frameborder'=> '0',], |
|
| 346 | - 'name_value'=> ['name',], |
|
| 345 | + 'default_attributes'=> [ 'frameborder'=> '0', ], |
|
| 346 | + 'name_value'=> [ 'name', ], |
|
| 347 | 347 | ], |
| 348 | 348 | 'img'=> [ |
| 349 | 349 | 'link'=> 'src', |
| 350 | 350 | 'alt'=> 'alt', |
| 351 | 351 | ], |
| 352 | - 'fpost'=> ['name'=> 'form', 'link'=> 'action', 'target'=> 'target', 'name_value'=> ['name',], 'default_attributes'=> ['method'=> 'post',],], |
|
| 353 | - 'fupload'=> ['name'=> 'form', 'link'=> 'action', 'target'=> 'target', 'name_value'=> ['name',], 'default_attributes'=> ['method'=> 'post','enctype'=> 'multipart/form-data',],], |
|
| 354 | - 'fget'=> ['name'=> 'form', 'link'=> 'action', 'target'=> 'target', 'name_value'=> ['name',], 'default_attributes'=> ['method'=> 'get',],], |
|
| 355 | - 'fput'=> ['name'=> 'form', 'link'=> 'action', 'target'=> 'target', 'name_value'=> ['name',], 'default_attributes'=> ['method'=> 'put',],], |
|
| 356 | - 'fpatch'=> ['name'=> 'form', 'link'=> 'action', 'target'=> 'target', 'name_value'=> ['name',], 'default_attributes'=> ['method'=> 'patch',],], |
|
| 357 | - 'fdelete'=> ['name'=> 'form', 'link'=> 'action', 'target'=> 'target', 'name_value'=> ['name',], 'default_attributes'=> ['method'=> 'delete',],], |
|
| 352 | + 'fpost'=> [ 'name'=> 'form', 'link'=> 'action', 'target'=> 'target', 'name_value'=> [ 'name', ], 'default_attributes'=> [ 'method'=> 'post', ], ], |
|
| 353 | + 'fupload'=> [ 'name'=> 'form', 'link'=> 'action', 'target'=> 'target', 'name_value'=> [ 'name', ], 'default_attributes'=> [ 'method'=> 'post', 'enctype'=> 'multipart/form-data', ], ], |
|
| 354 | + 'fget'=> [ 'name'=> 'form', 'link'=> 'action', 'target'=> 'target', 'name_value'=> [ 'name', ], 'default_attributes'=> [ 'method'=> 'get', ], ], |
|
| 355 | + 'fput'=> [ 'name'=> 'form', 'link'=> 'action', 'target'=> 'target', 'name_value'=> [ 'name', ], 'default_attributes'=> [ 'method'=> 'put', ], ], |
|
| 356 | + 'fpatch'=> [ 'name'=> 'form', 'link'=> 'action', 'target'=> 'target', 'name_value'=> [ 'name', ], 'default_attributes'=> [ 'method'=> 'patch', ], ], |
|
| 357 | + 'fdelete'=> [ 'name'=> 'form', 'link'=> 'action', 'target'=> 'target', 'name_value'=> [ 'name', ], 'default_attributes'=> [ 'method'=> 'delete', ], ], |
|
| 358 | 358 | |
| 359 | - 'fhidden'=> ['name'=> 'input', 'default_attributes'=> ['type'=> 'hidden',], 'name_value'=> ['name', 'value', 'form',],], |
|
| 360 | - 'ftext'=> ['name'=> 'input', 'default_attributes'=> ['type'=> 'text',], 'name_value'=> ['name', 'value', 'form',], 'alt'=> 'placeholder',], |
|
| 361 | - 'fsearch'=> ['name'=> 'input', 'default_attributes'=> ['type'=> 'search',], 'name_value'=> ['name', 'value', 'form',], 'alt'=> 'placeholder',], |
|
| 362 | - 'fpassword'=> ['name'=> 'input', 'default_attributes'=> ['type'=> 'password',], 'name_value'=> ['name', 'value', 'form',], 'alt'=> 'placeholder',], |
|
| 363 | - 'femail'=> ['name'=> 'input', 'default_attributes'=> ['type'=> 'email',], 'name_value'=> ['name', 'value', 'form',], 'alt'=> 'placeholder',], |
|
| 364 | - 'furl'=> ['name'=> 'input', 'default_attributes'=> ['type'=> 'url',], 'name_value'=> ['name', 'value', 'form',], 'alt'=> 'placeholder',], |
|
| 365 | - 'ftel'=> ['name'=> 'input', 'default_attributes'=> ['type'=> 'tel',], 'name_value'=> ['name', 'value', 'form',], 'alt'=> 'placeholder',], |
|
| 366 | - 'fnumber'=> ['name'=> 'input', 'default_attributes'=> ['type'=> 'number',], 'name_value'=> ['name', 'value', 'form',], 'alt'=> 'placeholder', 'params'=> ['min', 'step', 'max',],], |
|
| 367 | - 'frange'=> ['name'=> 'input', 'default_attributes'=> ['type'=> 'range',], 'name_value'=> ['name', 'value', 'form',], 'params'=> ['min', 'step', 'max',],], |
|
| 368 | - 'fradio'=> ['name'=> 'input', 'default_attributes'=> ['type'=> 'radio',], 'name_value'=> ['name', 'value', 'form',],], |
|
| 369 | - 'fcheckbox'=> ['name'=> 'input', 'default_attributes'=> ['type'=> 'checkbox',], 'name_value'=> ['name', 'value', 'form',],], |
|
| 370 | - 'fdate'=> ['name'=> 'input', 'default_attributes'=> ['type'=> 'date',], 'name_value'=> ['name', 'value', 'form',],], |
|
| 371 | - 'fmonth'=> ['name'=> 'input', 'default_attributes'=> ['type'=> 'month',], 'name_value'=> ['name', 'value', 'form',],], |
|
| 372 | - 'fweek'=> ['name'=> 'input', 'default_attributes'=> ['type'=> 'week',], 'name_value'=> ['name', 'value', 'form',],], |
|
| 373 | - 'ftime'=> ['name'=> 'input', 'default_attributes'=> ['type'=> 'time',], 'name_value'=> ['name', 'value', 'form',],], |
|
| 374 | - 'fdatetime'=> ['name'=> 'input', 'default_attributes'=> ['type'=> 'datetime',], 'name_value'=> ['name', 'value', 'form',],], |
|
| 375 | - 'fdatetime-local'=> ['name'=> 'input', 'default_attributes'=> ['type'=> 'datetime-local',], 'name_value'=> ['name', 'value', 'form',],], |
|
| 376 | - 'fcolor'=> ['name'=> 'input', 'default_attributes'=> ['type'=> 'color',], 'name_value'=> ['name', 'value', 'form',],], |
|
| 377 | - 'ffile'=> ['name'=> 'input', 'default_attributes'=> ['type'=> 'file',], 'name_value'=> ['name', 'form',], 'params'=> ['accept',],], |
|
| 359 | + 'fhidden'=> [ 'name'=> 'input', 'default_attributes'=> [ 'type'=> 'hidden', ], 'name_value'=> [ 'name', 'value', 'form', ], ], |
|
| 360 | + 'ftext'=> [ 'name'=> 'input', 'default_attributes'=> [ 'type'=> 'text', ], 'name_value'=> [ 'name', 'value', 'form', ], 'alt'=> 'placeholder', ], |
|
| 361 | + 'fsearch'=> [ 'name'=> 'input', 'default_attributes'=> [ 'type'=> 'search', ], 'name_value'=> [ 'name', 'value', 'form', ], 'alt'=> 'placeholder', ], |
|
| 362 | + 'fpassword'=> [ 'name'=> 'input', 'default_attributes'=> [ 'type'=> 'password', ], 'name_value'=> [ 'name', 'value', 'form', ], 'alt'=> 'placeholder', ], |
|
| 363 | + 'femail'=> [ 'name'=> 'input', 'default_attributes'=> [ 'type'=> 'email', ], 'name_value'=> [ 'name', 'value', 'form', ], 'alt'=> 'placeholder', ], |
|
| 364 | + 'furl'=> [ 'name'=> 'input', 'default_attributes'=> [ 'type'=> 'url', ], 'name_value'=> [ 'name', 'value', 'form', ], 'alt'=> 'placeholder', ], |
|
| 365 | + 'ftel'=> [ 'name'=> 'input', 'default_attributes'=> [ 'type'=> 'tel', ], 'name_value'=> [ 'name', 'value', 'form', ], 'alt'=> 'placeholder', ], |
|
| 366 | + 'fnumber'=> [ 'name'=> 'input', 'default_attributes'=> [ 'type'=> 'number', ], 'name_value'=> [ 'name', 'value', 'form', ], 'alt'=> 'placeholder', 'params'=> [ 'min', 'step', 'max', ], ], |
|
| 367 | + 'frange'=> [ 'name'=> 'input', 'default_attributes'=> [ 'type'=> 'range', ], 'name_value'=> [ 'name', 'value', 'form', ], 'params'=> [ 'min', 'step', 'max', ], ], |
|
| 368 | + 'fradio'=> [ 'name'=> 'input', 'default_attributes'=> [ 'type'=> 'radio', ], 'name_value'=> [ 'name', 'value', 'form', ], ], |
|
| 369 | + 'fcheckbox'=> [ 'name'=> 'input', 'default_attributes'=> [ 'type'=> 'checkbox', ], 'name_value'=> [ 'name', 'value', 'form', ], ], |
|
| 370 | + 'fdate'=> [ 'name'=> 'input', 'default_attributes'=> [ 'type'=> 'date', ], 'name_value'=> [ 'name', 'value', 'form', ], ], |
|
| 371 | + 'fmonth'=> [ 'name'=> 'input', 'default_attributes'=> [ 'type'=> 'month', ], 'name_value'=> [ 'name', 'value', 'form', ], ], |
|
| 372 | + 'fweek'=> [ 'name'=> 'input', 'default_attributes'=> [ 'type'=> 'week', ], 'name_value'=> [ 'name', 'value', 'form', ], ], |
|
| 373 | + 'ftime'=> [ 'name'=> 'input', 'default_attributes'=> [ 'type'=> 'time', ], 'name_value'=> [ 'name', 'value', 'form', ], ], |
|
| 374 | + 'fdatetime'=> [ 'name'=> 'input', 'default_attributes'=> [ 'type'=> 'datetime', ], 'name_value'=> [ 'name', 'value', 'form', ], ], |
|
| 375 | + 'fdatetime-local'=> [ 'name'=> 'input', 'default_attributes'=> [ 'type'=> 'datetime-local', ], 'name_value'=> [ 'name', 'value', 'form', ], ], |
|
| 376 | + 'fcolor'=> [ 'name'=> 'input', 'default_attributes'=> [ 'type'=> 'color', ], 'name_value'=> [ 'name', 'value', 'form', ], ], |
|
| 377 | + 'ffile'=> [ 'name'=> 'input', 'default_attributes'=> [ 'type'=> 'file', ], 'name_value'=> [ 'name', 'form', ], 'params'=> [ 'accept', ], ], |
|
| 378 | 378 | |
| 379 | - 'fsubmit'=> ['name'=> 'button', 'default_attributes'=> ['type'=> 'submit',], 'name_value'=> ['name', 'value','form',], 'link'=> 'formaction', 'target'=> 'formtarget',], |
|
| 380 | - 'freset'=> ['name'=> 'button', 'default_attributes'=> ['type'=> 'reset',], 'name_value'=> ['form',],], |
|
| 381 | - 'button'=> ['name'=> 'button', 'default_attributes'=> ['type'=> 'button',],], |
|
| 379 | + 'fsubmit'=> [ 'name'=> 'button', 'default_attributes'=> [ 'type'=> 'submit', ], 'name_value'=> [ 'name', 'value', 'form', ], 'link'=> 'formaction', 'target'=> 'formtarget', ], |
|
| 380 | + 'freset'=> [ 'name'=> 'button', 'default_attributes'=> [ 'type'=> 'reset', ], 'name_value'=> [ 'form', ], ], |
|
| 381 | + 'button'=> [ 'name'=> 'button', 'default_attributes'=> [ 'type'=> 'button', ], ], |
|
| 382 | 382 | |
| 383 | - 'ftextarea'=> ['name'=> 'textarea', 'name_value'=> ['name','value','form',],'alt'=> 'placeholder',], |
|
| 383 | + 'ftextarea'=> [ 'name'=> 'textarea', 'name_value'=> [ 'name', 'value', 'form', ], 'alt'=> 'placeholder', ], |
|
| 384 | 384 | |
| 385 | 385 | 'fselect'=> [ |
| 386 | 386 | 'name'=> 'select', |
| 387 | - 'name_value'=> ['name', 'value','form',], |
|
| 387 | + 'name_value'=> [ 'name', 'value', 'form', ], |
|
| 388 | 388 | 'scope'=> 'select', |
| 389 | 389 | ], |
| 390 | 390 | 'datalist'=> [ |
| 391 | - 'params'=> ['id',], |
|
| 391 | + 'params'=> [ 'id', ], |
|
| 392 | 392 | 'scope'=> 'datalist', |
| 393 | 393 | ], |
| 394 | 394 | 'optgroup'=> [ |
| 395 | 395 | 'in'=> [ |
| 396 | 396 | 'select'=> [ |
| 397 | - 'name_value'=> ['label',], |
|
| 397 | + 'name_value'=> [ 'label', ], |
|
| 398 | 398 | ], |
| 399 | 399 | ], |
| 400 | 400 | ], |
@@ -402,24 +402,24 @@ discard block |
||
| 402 | 402 | 'in'=> [ |
| 403 | 403 | 'select'=> [ |
| 404 | 404 | 'scope_function'=> function( $scope ){ |
| 405 | - if( $scope['value']===$this['value'] ){ |
|
| 406 | - $this['selected']= 'selected'; |
|
| 405 | + if( $scope[ 'value' ]===$this[ 'value' ] ){ |
|
| 406 | + $this[ 'selected' ]='selected'; |
|
| 407 | 407 | }; |
| 408 | 408 | }, |
| 409 | - 'name_value'=> ['value',], |
|
| 409 | + 'name_value'=> [ 'value', ], |
|
| 410 | 410 | 'alt'=> 'label', |
| 411 | 411 | ], |
| 412 | 412 | 'datalist'=> [ |
| 413 | - 'name_value'=> ['value',], |
|
| 413 | + 'name_value'=> [ 'value', ], |
|
| 414 | 414 | ], |
| 415 | 415 | ], |
| 416 | 416 | ], |
| 417 | 417 | |
| 418 | 418 | 'param'=> [ |
| 419 | - 'name_value'=> ['name','value',], |
|
| 419 | + 'name_value'=> [ 'name', 'value', ], |
|
| 420 | 420 | ], |
| 421 | 421 | 'source'=> [ |
| 422 | - 'params'=>['type',], |
|
| 422 | + 'params'=>[ 'type', ], |
|
| 423 | 423 | 'link'=> 'src', |
| 424 | 424 | ], |
| 425 | 425 | 'base'=> [ |
@@ -427,14 +427,14 @@ discard block |
||
| 427 | 427 | 'target'=> 'target', |
| 428 | 428 | ], |
| 429 | 429 | 'map'=> [ |
| 430 | - 'params'=> ['name',], |
|
| 430 | + 'params'=> [ 'name', ], |
|
| 431 | 431 | 'scope'=> 'area-map', |
| 432 | 432 | ], |
| 433 | 433 | 'area'=> [ |
| 434 | 434 | 'link'=> 'href', |
| 435 | - 'params'=> ['shape','coords'], |
|
| 435 | + 'params'=> [ 'shape', 'coords' ], |
|
| 436 | 436 | 'target'=> 'target', |
| 437 | - 'only_in'=> ['area-map',], |
|
| 437 | + 'only_in'=> [ 'area-map', ], |
|
| 438 | 438 | ], |
| 439 | 439 | 'audio'=> [ |
| 440 | 440 | 'link'=> 'src', |
@@ -444,11 +444,11 @@ discard block |
||
| 444 | 444 | ], |
| 445 | 445 | 'track'=> [ |
| 446 | 446 | 'link'=> 'src', |
| 447 | - 'param'=> ['kind',], |
|
| 447 | + 'param'=> [ 'kind', ], |
|
| 448 | 448 | 'alt'=> 'label', |
| 449 | 449 | ], |
| 450 | 450 | 'progress'=> [ |
| 451 | - 'param'=> ['value','max',], |
|
| 451 | + 'param'=> [ 'value', 'max', ], |
|
| 452 | 452 | ], |
| 453 | 453 | ]+$svgTags, |
| 454 | 454 | ], |